ERROR Flutter when integrate with Firebase Execution failed for task ‘:firebase_auth:compileDebugJavaWithJavac’.

when run main.dart, encounter this error

Reason: should use AndroidX to run the android application

Solving method:

Add two lines into /android/gradle.properties

android.useAndroidX=true
android.enableJetifier=true

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.