更新 Firebase Performance SDK 后应用未构建
App isn't building after update Firebase Performance SDK
更新后
classpath 'com.android.tools.build:gradle:3.5.3'
至 classpath 'com.android.tools.build:gradle:3.6.1'
出现以下编译错误....
Caused by: org.gradle.tooling.BuildException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/2
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/2
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
Caused by: java.lang.NoSuchMethodError: com.android.tools.r8.D8Command$Builder.setIncludeClassesChecksum(Z)Lcom/android/tools/r8/BaseCompilerCommand$Builder;
Caused by: org.gradle.tooling.BuildException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/121
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/121
Caused by: java.lang.NoSuchMethodError: com.android.tools.r8.D8Command$Builder.setIncludeClassesChecksum(Z)Lcom/android/tools/r8/BaseCompilerCommand$Builder;
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
我该怎么办?
解决方案:从项目级别 gradle 中删除 classpath 'com.android.tools:r8:1.2.52'
后问题已解决。
我刚刚重建了这个项目,它又可以工作了
第 1 步:开始构建
第 2 步:重建项目
第 3 步:完成!
更新后
classpath 'com.android.tools.build:gradle:3.5.3'
至 classpath 'com.android.tools.build:gradle:3.6.1'
出现以下编译错误....
Caused by: org.gradle.tooling.BuildException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/2
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/2
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
Caused by: java.lang.NoSuchMethodError: com.android.tools.r8.D8Command$Builder.setIncludeClassesChecksum(Z)Lcom/android/tools/r8/BaseCompilerCommand$Builder;
Caused by: org.gradle.tooling.BuildException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/121
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /app/build/intermediates/transforms/FirebasePerformancePlugin/debug/121
Caused by: java.lang.NoSuchMethodError: com.android.tools.r8.D8Command$Builder.setIncludeClassesChecksum(Z)Lcom/android/tools/r8/BaseCompilerCommand$Builder;
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
我该怎么办?
解决方案:从项目级别 gradle 中删除 classpath 'com.android.tools:r8:1.2.52'
后问题已解决。
我刚刚重建了这个项目,它又可以工作了
第 1 步:开始构建 第 2 步:重建项目 第 3 步:完成!