I’m using cocos2d-js3.6 befor, i update it to cocos2dx3.7 for the pupurse of convenience of the android studio .
I import the project with android studio,and then debug it ,select an android device , and the apk is built successfully and installed to the device , but it come to error with “unfortunetly, cocos2dx has stopped” ,the same with simulator , and the same with cpp-tests project.
What should i do? Anyone has successfully maked it workes with android studio ?
logcat info:
07-24 10:58:15.789 26719-26719/? D/dalvikvm﹕ Late-enabling CheckJNI
07-24 10:58:15.949 26719-26719/org.cocos2dx.cpp_empty_test D/ActivityThread﹕ handleBindApplication:org.cocos2dx.cpp_empty_test
07-24 10:58:15.949 26719-26719/org.cocos2dx.cpp_empty_test D/ActivityThread﹕ setTargetHeapUtilization:0.75
07-24 10:58:15.949 26719-26719/org.cocos2dx.cpp_empty_test D/ActivityThread﹕ setTargetHeapMinFree:2097152
07-24 10:58:15.949 26719-26719/org.cocos2dx.cpp_empty_test D/ActivityThread﹕ setTargetHeapConcurrentStart:2097152
07-24 10:58:15.989 26719-26719/org.cocos2dx.cpp_empty_test V/HwWidgetFactory﹕ : successes to get AllImpl object and return....
07-24 10:58:15.999 26719-26719/org.cocos2dx.cpp_empty_test D/AndroidRuntime﹕ Shutting down VM
07-24 10:58:15.999 26719-26719/org.cocos2dx.cpp_empty_test W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41648e00)
07-24 10:58:15.999 26719-26719/org.cocos2dx.cpp_empty_test E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: org.cocos2dx.cpp_empty_test, PID: 26719
java.lang.UnsatisfiedLinkError: Couldn't load cpp_empty_test from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.cocos2dx.cpp_empty_test-2.apk"],nativeLibraryDirectories=[/data/app-lib/org.cocos2dx.cpp_empty_test-2, /vendor/lib, /system/lib, /data/datalib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:555)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:207)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:222)
at android.app.Activity.performCreate(Activity.java:5340)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2228)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2313)
at android.app.ActivityThread.access$1100(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5333)
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:895)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:711)
at dalvik.system.NativeStart.main(Native Method)