После добавления admob в sketchware и сгенерированного apk в android studio приложение продолжает останавливаться.Firebase также добавила туда в sketchware получение ошибки проектирования поддержки 27.0.2 в библиотеке после запуска в sketchware.Затем я экспортировал в 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