Unable to build apk, firebase_admob making Error

ぐ巨炮叔叔 提交于 2019-12-02 05:11:43

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.

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
Abdullahi lateef

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'
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!