【发布时间】:2019-08-15 13:06:40
【问题描述】:
我最近遇到了一个问题,即我的 Build Variants 无法正常工作。我无法选择变体,选择行上只有一个-----。
我已经尝试过:
- 删除我的 .idea 文件夹,使缓存和所有内容无效
- 使用 Gradle 文件同步项目
我的 buildConfig Gradle 看起来像:
buildTypes {
debug {
minifyEnabled false
resValue "string", "ADMOB_APP_ID", "\"${keystoreProperties["debugAdmobApiKey"]}\""
resValue "string", "INSTERSTIAL_AD_ID", "\"${keystoreProperties["debugInterstialAdKey"]}\""
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
resValue "string", "ADMOB_APP_ID", "\"${keystoreProperties["releaseAdmobApiKey"]}\""
resValue "string", "INSTERSTIAL_AD_ID", "\"${keystoreProperties["releaseInterstialAdKey"]}\""
}
}
可能是什么问题?
【问题讨论】:
标签: android gradle groovy build.gradle build-variant