Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio isn't showing Build Variants

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.

enter image description here

I have tried to:

  • delete my .idea folder, invalidate caches and everything
  • Sync Project with Gradle Files

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?

like image 736
Francisco Durdin Garcia Avatar asked Oct 28 '25 21:10

Francisco Durdin Garcia


1 Answers

Try to sync your project with the Gradle files via

File -> Sync Project with Gradle Files

like image 177
Mayokun Avatar answered Oct 30 '25 13:10

Mayokun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!