我不知道发生了什么,我将 Unity Editor 从 2020.3.f23 更新到 2021.3.f19。 现在 Google 移动广告崩溃了,在 android 模拟器上调试我收到这样的错误消息:
DllNotFoundException: Unable to load DLL 'FirebaseCppApp-9_6_0'. Tried the load the following dynamic libraries: Unable to load dynamic library 'FirebaseCppApp-9_6_0' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "FirebaseCppApp-9_6_0" not found
at Firebase.AppUtilPINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_AppUtil (Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate applicationDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate arithmeticDelegate....
我也用Google Play Games Service,它也有错误:
AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.games.Games
java.lang.ClassNotFoundException: com.google.android.gms.games.Games
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:454)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
还有这个:
AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/AdError;
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/AdError;
我试过Force Resolver,它说它发现了冲突:
94 actionable tasks: 94 executedWARNING: Some conflicting dependencies were found.
The following dependency versions were modified:
com.google.android.gms:play-services-ads:20.6.0 --> com.google.android.gms:play-services-ads:+
com.google.android.gms:play-services-base:18.1.0 --> com.google.android.gms:play-services-base:+
com.google.android.play:core-common:2.0.0 --> com.google.android.play:core-common:2.0.+
com.google.android.play:review:2.0.0 --> com.google.android.play:review:+
com.google.firebase:firebase-analytics:21.1.1 --> com.google.firebase:firebase-analytics:+
com.google.firebase:firebase-common:20.1.2 --> com.google.firebase:firebase-common:+
com.google.games:gpgs-plugin-support:0.10.14 --> com.google.games:gpgs-plugin-support:+
com.unity3d.mediation:mediation-sdk:[1.0,2.0[ --> com.unity3d.mediation:mediation-sdk:+
遇到这种情况怎么办?