我收到此错误。
无法转换 firebase-auth-22.2.0.aar (com.google.firebase:firebase-auth:22.2.0) 匹配属性 {artifactType=android-dex,asm-transformed-variant=NONE, dexing-启用-脱糖=true, dexing-enable-jacoco-instrumentation = false,dexing-is-debuggable = true, dexing-min-sdk=21, org.gradle.category=库, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
我尝试更新 kotlin、构建 gradle、所有库、flutter clean、使缓存无效...没有任何效果。
这是我的配置
ext.kotlin_version = '1.8.22'
minSdkVersion 21
targetSdkVersion 34
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.4.0'
implementation platform('com.google.firebase:firebase-bom:31.2.0')
我还能做什么?
用 minSdkVersion 24 解决。谢谢@Anand
minSdkVersion 24
对我不起作用。我用下面的方法解决了,不知道为什么,通过。
debug {
// fix Failed to transform firebase-auth-22.3.1.aar
minifyEnabled true
signingConfig signingConfigs.debug
}