Vungle 中介适配器在 Unity 中不工作

Vungle Mediation Adapters not working in Unity

即使按照 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.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 的中介和在日志中给出此内部错误。

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