版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/DONGHUIB/article/details/80983620
android studio 报错:
AGPBI: {"kind":"error","text":"Program type already present: org.objectweb.asm.ClassVisitor","sources":[{}],"tool":"D8"}
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
FAILURE: Build failed with an exception.
处理:
修改 build.gradle, 取消javaCompileOptions 以及依赖 gradle-experimental
defaultConfig {
//javaCompileOptions {
// annotationProcessorOptions {
// includeCompileClasspath = true
// }
}
dependencies {
......
//implementation 'com.android.tools.build:gradle-experimental:0.7.0'
}