我的unity 2017.1.0f3制作的游戏在手机上启动时崩溃

时间:2018-10-22 13:02:31

标签: android unity3d crash launch

请帮助我解决这个问题,这是构建后在手机中启动时崩溃的错误:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/wrappers/Wrappers; at com.google.android.gms.internal.ads.zzmn.zzg(Unknown Source) at com.google.android.gms.internal.ads.zzmn.attachInfo(Unknown Source) at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(Unknown Source) at android.app.ActivityThread.installProvider(ActivityThread.java:6087) at android.app.ActivityThread.installContentProviders(ActivityThread.java:5566) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5505) at android.app.ActivityThread.-wrap2(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6361) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.wrappers.Wrappers" on path: DexPathList[[zip file "/data/app/net.run_boy_speed-1/base.apk"],nativeLibraryDirectories=[/data/app/net.run_boy_speed-1/lib/arm, /data/app/net.run_boy_speed-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 14 more

1 个答案:

答案 0 :(得分:0)

从此处下载一个zip。 https://github.com/googlesamples/unity-jar-resolver

然后将其打开并导入驻留在此的插件。 然后转到资产> Play服务解析器> Android>强制解析。

它必须解决您的问题。