Dr.*_*.M. 20 android gradle firebase crashlytics android-r8
该应用程序在正常情况下运行良好,但当我尝试实现 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.
Run Code Online (Sandbox Code Playgroud)
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:uploadCrashlyticsMappingFileAlpha'.
//..... More Error Line
Run Code Online (Sandbox Code Playgroud)
我收到上述错误,并且完全不知道发生了什么。
buildTypes {
getByName("debug") {
applicationIdSuffix = ".sandbox"
debuggable true
}
alpha {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
versionNameSuffix ".alpha"
}
}
Run Code Online (Sandbox Code Playgroud)
这是我使用的上面的代码,我正在尝试构建 Alpha,但是当我调试时工作正常。
gun*_*ess 32
Google Play 服务有一个新版本,似乎解决了这个问题。您可以使用4.3.13。为此,他们恢复了缺失的功能。
原答案
请将 Google Play 服务降级至4.3.10. 我不知道其背后的原因,但似乎4.3.12不兼容。
这是我在 Google issuestracker 上创建的问题:
https://issuetracker.google.com/issues/237071883
| 归档时间: |
|
| 查看次数: |
1267 次 |
| 最近记录: |