I am trying to build apk but firebase admob is making problem, if I run without firebase_admob
then apk works perfectly and built without any error how to resolve t
Seems like you haven't migrated your project to AndroidX
, all you need to do is, in your IDE use
Refactor > Migrate to AndroidX
After this
File > Invalidate Caches and Restart
I was facing similar error. but I would like to suggest you to make appbundle which is the best option to upload app. Run flutter build appbundle
sign it with google play store signing enrollment and upload. I resolve it with this.
Did you add the dependencies in Android/app/build.gradle?
dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
api 'com.google.firebase:firebase-core:16.0.9'
api 'com.google.firebase:firebase-ads:16.0.1'
}