在我的android应用中
在app / build.gradle中:
QUIZ_GRADEHIGHEST => get_string('gradehighest', 'quiz')
但是在构建项目时出现错误:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.myproject"
minSdkVersion 15
targetSdkVersion 28
versionCode 285
versionName "1.4.285"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
def AAVersion = '4.6.0'
dependencies {
annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation "org.androidannotations:androidannotations-api:$AAVersion"
implementation project(':binding')
implementation project(':cacheservice')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
答案 0 :(得分:0)
使用以下命令获取依赖项列表以及有关每个依赖项的详细信息。
gradlew -q app:dependencies
gradlew -q app:dependencyInsight --configuration FLAVORNAMEReleaseCompileClasspath --dependency dependencyNAME
gradlew -q app:dependencyInsight --configuration RanjanReleaseCompileClasspath --dependency com.google.android.libraries.tv:companionlibrary