FATAL EXCEPTION: main
Process: com.hzzlian.myapp, PID: 31356
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/tencent/mm/opensdk/openapi/WXAPIFactory;
at com.hzzlian.myapp.MainActivity.onCreate(MainActivity.java:25)
Caused by: java.lang.ClassNotFoundException: com.tencent.mm.opensdk.openapi.WXAPIFactory
win=Window{c62fe85 u0 Splash Screen com.hzzlian.myapp EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.-$$Lambda$01bPtngJg5AqEoOWfW3rWfV7MH4.accept:2 java.util.ArrayList.forEach:1262 com.android.server.wm.ActivityRecord.onAnimationFinished:7162 com.android.server.wm.WindowContainer.doAnimationFinished:2626
25行就是这个 api = WXAPIFactory.createWXAPI(this, APP_ID, true);
上面是AS报错信息。使用了unity打包安卓,运行到手机上出现闪退,在AS里出现了这个错报。 这个是没有引入的问题吗? 但查看导入类又都是有的