I'm recently struggling with a problem where my Build Variants is not working properly. I can't select variants, there is just a ----- on the selection row.

I have tried to:
My buildConfig Gradle looks like:
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"]}\""
}
}
What could be the problem?
Try to sync your project with the Gradle files via
File -> Sync Project with Gradle Files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With