即使从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的中介,并在日志中给出了此内部错误。 / p>
答案 0 :(得分:0)
通过将Unity Build系统更改为内部版本并在此之后运行Play Services Resolver Force Resolve来解决此问题。