Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to transform firebase-auth-22.2.0.aar

I am getting this error.

Failed to transform firebase-auth-22.2.0.aar (com.google.firebase:firebase-auth:22.2.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.

I tried to update kotlin, build gradle, all libraries, flutter clean, invalidate cache... nothing work.

Here is my configuration

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')

What else I can do ?

like image 232
Chloé Avatar asked Dec 19 '25 21:12

Chloé


2 Answers

Resolved with minSdkVersion 24. Thank you @Anand

like image 56
Chloé Avatar answered Dec 22 '25 13:12

Chloé


minSdkVersion 24 didn't work for me. I solved it with below, don't know why, through.

        debug {
            // fix Failed to transform firebase-auth-22.3.1.aar
            minifyEnabled true
            signingConfig signingConfigs.debug
        }
like image 27
gblue1223 Avatar answered Dec 22 '25 14:12

gblue1223



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!