昨夜まで動いていたアプリが本日から急にエラーが出て動かなくなりました。
現象としましては
コンパイルは問題なくおわり、AndroidStudioから実機デバッグしようとすると、起動直後(画面を開くことなく)に強制終了します。
Logcatにはエラーは出力されず、Debug Consoleには以下のエラーが表示されます。
ソース修正に問題があるのかと思い、昨日の状態に戻しましたが、状況は変わりません。
AndroidStudioなど任意でアップデートしておりません。
大変困っております。どなたかご教示頂けませんでしょうか。
よろしくお願いいたします。
AndroidStudio3.2
Android SDK Tools:26.1.1
Android Platform Version:API27:Android 8.1 revision3
実機端末 Android8.1.0とAndroid6.0
以下がエラーになります。
「AdMob」云々と出ておりますが、AdMob は使用しておりません。
E/AndroidRuntime: FATAL EXCEPTION: main Process: アプリ名, PID: 5406 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: https://goo.gl/fQ2neu to add a valid * * App ID inside the AndroidManifest. Google Ad Manager publishers should * * follow instructions here: https://goo.gl/h17b6x. * ****************************************************************************** at android.app.ActivityThread.installProvider(ActivityThread.java:5265) at android.app.ActivityThread.installContentProviders(ActivityThread.java:4847) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4787) at android.app.ActivityThread.access$1600(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1452) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:5526) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.IllegalStateException: ****************************************************************************** * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers * * should follow the instructions here: https://goo.gl/fQ2neu to add a valid * * App ID inside the AndroidManifest. Google Ad Manager publishers should * * follow instructions here: https://goo.gl/h17b6x. * ****************************************************************************** at com.google.android.gms.internal.ads.zzmn.attachInfo(Unknown Source) at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(Unknown Source) at android.app.ActivityThread.installProvider(ActivityThread.java:5262) ... 10 more
以下がbuild.gradle(Module:app)です
apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "アプリ名" minSdkVersion 18 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/gfx', 'src/main/assets/mfx'] } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' //implementation 'com.google.android.gms:play-services:+' implementation 'com.google.android.gms:play-services-ads:+' implementation project(':andEngine') }
以下がbuild.gradle(Project)です
buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/06 07:19
2018/10/06 08:08
2018/10/06 10:30