在将admob添加到素描软件并在android studio中生成apk之后,应用程序不断停止

时间:2018-12-02 16:39:20

标签: admob

将admob添加到素描软件并在android studio中生成apk后,应用程序不断停止。 Firebase还在素描软件中添加了此功能,在素描软件中运行后,库中出现27.0.2支持设计错误。然后我导出到android studio,生成apk并安装在手机上,同时启动应用程序,显示应用程序已停止“重新启动应用程序”,单击“重新启动”后,应用程序一直停止“关闭应用程序”,然后单击关闭以使其关闭。我生成了logcat:

2018-12-02 20:57:43.735 23605-23605/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: web, PID: 23605
java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 

******************************************************************************
* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
* should follow the instructions here:  to add a valid  *
* App ID inside the AndroidManifest. Google Ad Manager publishers should     *
* follow instructions here:                            *
******************************************************************************


    at android.app.ActivityThread.installProvider(ActivityThread.java:6423)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6012)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5951)
    at android.app.ActivityThread.-wrap3(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1710)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6776)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
 Caused by: java.lang.IllegalStateException: 

******************************************************************************
* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
* should follow the instructions here to add a valid  *
* App ID inside the AndroidManifest. Google Ad Manager publishers should     *
* follow instructions here: .                           *
******************************************************************************


    at com.google.android.gms.internal.ads.zzze.attachInfo(Unknown Source)
    at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(Unknown Source)
    at android.app.ActivityThread.installProvider(ActivityThread.java:6420)
        ... 10 more

2018-12-02 20:57:47.251 23716-23716/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: web, PID: 23716
java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 

******************************************************************************
* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
* should follow the instructions here:  to add a valid  *
* App ID inside the AndroidManifest. Google Ad Manager publishers should     *
* follow instructions here:                       *
******************************************************************************


    at android.app.ActivityThread.installProvider(ActivityThread.java:6423)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6012)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5951)
    at android.app.ActivityThread.-wrap3(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1710)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6776)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
 Caused by: java.lang.IllegalStateException: 

******************************************************************************
* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
* should follow the instructions here:  to add a valid  *
* App ID inside the AndroidManifest. Google Ad Manager publishers should     *
* follow instructions here:                            *
******************************************************************************


    at com.google.android.gms.internal.ads.zzze.attachInfo(Unknown Source)
    at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(Unknown Source)
    at android.app.ActivityThread.installProvider(ActivityThread.java:6420)
        ... 10 more

0 个答案:

没有答案