gpt4 book ai didi

java.lang.ClassNotFoundException : Didn't find class "com.google.android.gms.dynamic.zzf" on path: DexPathList 异常

转载 作者:行者123 更新时间:2023-11-29 19:11:27 24 4
gpt4 key购买 nike

我遇到了这个奇怪的错误

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.dynamic.zzf" on path: DexPathList[[zip file "/data/app/com.dancam.chords-2/base.apk"],nativeLibraryDirectories=[/data/app/com.dancam.chords-2/lib/arm64, /system/lib64, /vendor/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at com.google.android.gms.internal.zzel.(Unknown Source)  at com.google.android.gms.internal.zzel.(Unknown Source)  at com.google.android.gms.internal.zzel.zzeU(Unknown Source)  at com.google.android.gms.internal.zzfh.zza(Unknown Source)  at com.google.android.gms.ads.MobileAds.initialize(Unknown Source)  at com.google.android.gms.ads.MobileAds.initialize(Unknown Source)  at dancam.com.chords.Drawer.onCreate(Drawer.java:105)  at android.app.Activity.performCreate(Activity.java:6684)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2637)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2751)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6186)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) 

在抽屉里,第 105 行

MobileAds.initialize(getApplicationContext(), "ca-app-pub-nnnnnnnnnnnnnnnnnnnnnnn");

这是我第一次看到这个错误,在 Google 上搜索我什至找不到有人谈论它。

你们中有人知道为什么会发生这种情况以及如何解决它吗?

更多信息:

实现库后,我必须修改我的 build.gradle 并添加

defaultConfig {
...
multiDexEnabled true
}

dataBinding {
enabled = true
}

此更改是否与错误有关?

最佳答案

我设法解决了这个问题。我像这样在我的应用程序中实现了 firebase

compile 'com.google.firebase:firebase-ads:10.2.0'
compile 'com.google.firebase:firebase-invites:10.2.0'
compile 'com.google.firebase:firebase-crash:10.2.0'
compile 'com.google.firebase:firebase-storage:11.0.2'

此依赖项之间的版本不匹配导致应用程序崩溃。将最后的依赖项更改为

compile 'com.google.firebase:firebase-storage:10.2.0'

解决了我的问题。

关于java.lang.ClassNotFoundException : Didn't find class "com.google.android.gms.dynamic.zzf" on path: DexPathList 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45173900/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com