该应用程序在正常情况下运行良好,但当我try 实现minify和R8时.这会引发以下错误.
* 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
我得到上述错误,并且
buildTypes {
getByName("debug") {
applicationIdSuffix = ".sandbox"
debuggable true
}
alpha {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
versionNameSuffix ".alpha"
}
}
这是我使用的上述代码,我正在try 构建Alpha,但调试时效果良好.