Unable to build apk, firebase_admob making Error

后端 未结 3 913
独厮守ぢ
独厮守ぢ 2021-01-21 18:34

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

相关标签:
3条回答
  • 2021-01-21 19:00

    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
    
    0 讨论(0)
  • 2021-01-21 19:06

    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.

    0 讨论(0)
  • 2021-01-21 19:19

    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'
    }
    
    0 讨论(0)
提交回复
热议问题