Firebase广告相关性会导致应用崩溃

时间:2017-10-24 06:12:26

标签: firebase admob

我有一个可以与其他Firebase组件一起运行的应用程序,但我立即添加

  

编译com.google.firebase:firebase-ads:10.2.4'

它崩溃了下面的错误消息。请注意,删除广告依赖关系并重新构建它会使其再次运行,请帮助我坚持数小时。

10-24 09:01:46.662 28767-28767/daftari.diary.com E/AndroidRuntime: FATAL EXCEPTION: main
                                                               Process: daftari.diary.com, PID: 28767
                                                               java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{daftari.diary.com/daftari.diary.com.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "daftari.diary.com.MainActivity" on path: DexPathList[[zip file "/data/app/daftari.diary.com-2.apk"],nativeLibraryDirectories=[/data/app-lib/daftari.diary.com-2, /vendor/lib, /system/lib]]
                                                                   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2297)
                                                                   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
                                                                   at android.app.ActivityThread.access$900(ActivityThread.java:151)
                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
                                                                   at android.os.Handler.dispatchMessage(Handler.java:110)
                                                                   at android.os.Looper.loop(Looper.java:193)
                                                                   at android.app.ActivityThread.main(ActivityThread.java:5345)
                                                                   at java.lang.reflect.Method.invokeNative(Native Method)
                                                                   at java.lang.reflect.Method.invoke(Method.java:515)
                                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
                                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
                                                                   at dalvik.system.NativeStart.main(Native Method)
                                                                Caused by: java.lang.ClassNotFoundException: Didn't find class "daftari.diary.com.MainActivity" on path: DexPathList[[zip file "/data/app/daftari.diary.com-2.apk"],nativeLibraryDirectories=[/data/app-lib/daftari.diary.com-2, /vendor/lib, /system/lib]]
                                                                   at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                                   at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
                                                                   at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
                                                                   at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
                                                                   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288)
                                                                   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441) 
                                                                   at android.app.ActivityThread.access$900(ActivityThread.java:151) 
                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 
                                                                   at android.os.Handler.dispatchMessage(Handler.java:110) 
                                                                   at android.os.Looper.loop(Looper.java:193) 
                                                                   at android.app.ActivityThread.main(ActivityThread.java:5345) 
                                                                   at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                   at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828) 
                                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644) 
                                                                   at dalvik.system.NativeStart.main(Native Method) 

0 个答案:

没有答案