nooralibutt / easy-ads

This repo has the integration of AdMob, AppLovin-Max, UnityAds, and Facebook ads.
https://pub.dev/packages/easy_ads_flutter
BSD 3-Clause "New" or "Revised" License
38 stars 19 forks source link

Doesn't work Android #71

Closed cihanst closed 1 year ago

cihanst commented 1 year ago

this works iOS but not work android. when I remove this, android good works

nooralibutt commented 1 year ago

It's in all of our apps and it works on android and iOS, can you explain your issue here with bit more detail?

cihanst commented 1 year ago

I am so sory. After I upgrade flutter, this happened. It is not problem for easy-ads

turbobuilt commented 8 months ago

this works iOS but not work android. when I remove this, android good works

When I install, my android crashes immediately on launch. To fix, I had to add the google admob id. I didn't do this because I wasn't planning on using admob.

    <meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="ca-app-pub-...."/>

E/AndroidRuntime(14988): FATAL EXCEPTION: main E/AndroidRuntime(14988): Process: ai.dreamgenerator.app, PID: 14988 E/AndroidRuntime(14988): java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: E/AndroidRuntime(14988): E/AndroidRuntime(14988): ** E/AndroidRuntime(14988): The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers E/AndroidRuntime(14988): should follow the instructions here: E/AndroidRuntime(14988): https://googlemobileadssdk.page.link/admob-android-update-manifest E/AndroidRuntime(14988): to add a valid App ID inside the AndroidManifest. E/AndroidRuntime(14988): Google Ad Manager publishers should follow instructions here: E/AndroidRuntime(14988): https://googlemobileadssdk.page.link/ad-manager-android-update-manifest. E/AndroidRuntime(14988): ** E/AndroidRuntime(14988): E/AndroidRuntime(14988): E/AndroidRuntime(14988): at android.app.ActivityThread.installProvider(ActivityThread.java:7493) E/AndroidRuntime(14988): at android.app.ActivityThread.installContentProviders(ActivityThread.java:6999) E/AndroidRuntime(14988): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6770) E/AndroidRuntime(14988): at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) E/AndroidRuntime(14988): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2134) E/AndroidRuntime(14988): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(14988): at android.os.Looper.loopOnce(Looper.java:201) E/AndroidRuntime(14988): at android.os.Looper.loop(Looper.java:288) E/AndroidRuntime(14988): at android.app.ActivityThread.main(ActivityThread.java:7898) E/AndroidRuntime(14988): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(14988): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E/AndroidRuntime(14988): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) E/AndroidRuntime(14988): Caused by: java.lang.IllegalStateException: