构建失败时出现“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
,但无法获得除上述内容之外的错误描述。