0

即使在遵循 Google Admob 网站上的正确文档之后也会出现以下错误:

06-29 18:30:04.705 7524-7549/? E/Unity: AndroidJavaException: 
java.lang.NoClassDefFoundError: Failed resolution of: 
Lcom/vungle/mediation/VungleExtrasBuilder;
                                    java.lang.NoClassDefFoundError: 
Failed resolution of: Lcom/vungle/mediation/VungleExtrasBuilder;
                                        atcom.google.unity.mediation.vungle.VungleUnityExtrasBuilder.buildExtras(VungleUnityExtrasBuilder.java:31)
                                        at com.google.unity.mediation.vungle.VungleUnityInterstitialExtrasBuilder.buildExtras(VungleUnityInterstitialExtrasBuilder.java:8)
                                        at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
                                        at com.unity3d.player.UnityPlayer.c(Unknown Source)
                                        at com.unity3d.player.UnityPlayer$d$2.queueIdle(Unknown Source)
                                        at android.os.MessageQueue.next(MessageQueue.java:392)
                                        at android.os.Looper.loop(Looper.java:142)
                                        at com.unity3d.player.UnityPlayer$d.run(Unknown Source)
                                     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vungle.mediation.VungleExtrasBuilder" on path: DexPathList[[zip file "/data/app/<package-name>-2/base.apk"],nativeLibraryDirectories=[/d

我的 vungle-extras-library.jar 文件也位于 Assets/Plugins/Android 文件夹中,一切似乎都运行良好,但是当我启动游戏时,它不会为 Vungle 加载中介,并在日志中显示此内部错误。

4

1 回答 1

0

通过将 Unity Build 系统更改为内部并运行 Play Services Resolver Force Resolve 解决了这个问题。

于 2018-09-11T16:14:35.670 回答