JSR/RET与computeFrames选项不兼容 - Android Studio 4.2.1

5

构建失败时出现“JSR / RET与computeFrames选项不兼容”的错误。

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext.kotlin_version = "1.5.0"
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.1'
        //noinspection DifferentKotlinGradleVersion
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.6.1'
        classpath 'com.google.dagger:hilt-android-gradle-plugin:2.35'
        // Replace the standard Performance Monitoring plugin dependency line, as follows:
        classpath('com.google.firebase:perf-plugin:1.4.0') {
            exclude group: 'com.google.guava', module: 'guava-jdk5'
        }
        classpath 'com.google.gms:google-services:4.3.8'
    }
}


allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
        maven { url 'https://dl.bintray.com/google/flexbox-layout/' }
        maven { url "https://plugins.gradle.org/m2/" }
        maven { url 'https://repo.spring.io/plugins-release/' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Android Studio 版本 - 4.2.1, 在将 Gradle 和 Android 版本升级到 4.2.1 后出现此问题。

我尝试使用 Run with --stacktrace,但无法获得除上述内容之外的错误描述。


我也遇到了同样的问题。你有解决办法吗? - TrackDave
我现在也遇到了同样的问题。你找到解决方案了吗? - MehranB
1个回答

3
如果你仍然遇到麻烦,也许这可以帮助你:
删除 Firebase 性能依赖和任何使用它的依赖项
当我尝试生成 APK 或重建我的项目时,我也收到了同样的消息。
然后,我移除了该依赖项,然后它正常运作了。
此时,我还在研究这个故障的起源,如果我找到更多关于起源的信息,我会更新答案。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接