par*_*thy 5 android gradle android-studio
构建失败并显示“computeFrames 选项不支持 JSR/RET”,
// 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
}
Run Code Online (Sandbox Code Playgroud)
Android studio 版本 - 4.2.1,将 gradle 和 android 版本升级到 4.2.1 后出现此问题,
我已经尝试过,Run with --stacktrace但除了上述错误描述之外,我无法得到错误描述。
小智 3
如果您仍然遇到问题,也许这可以帮助您
消除对 firebase 性能及其使用的依赖
当我尝试生成 apk 或重建我的项目时,我收到了同样的消息
然后我删除了该依赖项并且它正常工作
目前,我仍在对失败的起源进行一些研究,如果我找到有关起源的更多信息,我将更新答案
| 归档时间: |
|
| 查看次数: |
1205 次 |
| 最近记录: |