Home > database >  Firebase Crashlytics Minify R8 Android
Firebase Crashlytics Minify R8 Android

Time:06-25

The app works fine under normal instances but when I try to implement minify and R8. This raises the following error.

* What went wrong:
Execution failed for task ':app:uploadCrashlyticsMappingFileAlpha'.
> Failed to calculate the value of task ':app:uploadCrashlyticsMappingFileAlpha' property 'googleServicesResourceRoot'.
   > Could not get unknown property 'intermediateDir' for task ':app:processAlphaGoogleServices' of type com.google.gms.googleservices.GoogleServicesTask.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:uploadCrashlyticsMappingFileAlpha'.

//..... More Error Line

I get the above error and Absolutely have no idea what's happening.

buildTypes {
        getByName("debug") {
            applicationIdSuffix = ".sandbox"
            debuggable true
        }
        alpha {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            versionNameSuffix ".alpha"
        }
}

This is the above code I used and I am trying to build Alpha but when I Debug works fine.

CodePudding user response:

Please downgrade the Google Play Services to 4.3.10. I don't know the reasoning behind it, but it seems 4.3.12 is not compatible.

  • Related