cocos2d-x移植android studio安装成功后闪退

使用cocos studio新建了一个项目,然后用android studio打开后安装到手机上,打不开,直接闪退,以下是android studio的logcat:

01-29 21:28:26.147 12261-12261/org.cocos.NewCocosProject1 E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.cocos.NewCocosProject1, PID: 12261
java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.cocos.NewCocosProject1-2.apk"],nativeLibraryDirectories=[/data/app-lib/org.cocos.NewCocosProject1-2, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at org.cocos2dx.cpp.AppActivity.(AppActivity.java:34)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2107)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2239)
at android.app.ActivityThread.access$800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5047)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:806)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
2019-01-29 21:39 添加评论 分享
已邀请:

要回复问题请先登录注册

退出全屏模式 全屏模式 回复