flutterfirebasefirebase-authentication

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 ?


Solution

  • Resolved with minSdkVersion 24. Thank you @Anand