1、使用creator1.4.0 helloworld模板生成项目,未做任何修改,构建发布时选择default并勾选android studio。如下图所示
2、打开android studio 2.0,导入android studio类型项目,gradle未升级,打开项目正常,选择小米note 1s真机或夜神模拟器运行,均报同样的异常。如下图所示
错误信息如下:
02-22 01:00:24.934 17916-17916/org.cocos2d.helloworld D/ActivityThread: handleBindApplication:org.cocos2d.helloworld
02-22 01:00:24.934 17916-17916/org.cocos2d.helloworld D/ActivityThread: setTargetHeapUtilization:0.75
02-22 01:00:24.934 17916-17916/org.cocos2d.helloworld D/ActivityThread: setTargetHeapMinFree:2097152
02-22 01:00:24.954 17916-17916/org.cocos2d.helloworld I/libthemeutils: Theme: libthemeutil.so load success
02-22 01:00:25.014 17916-17916/org.cocos2d.helloworld D/dalvikvm: GetMethodID: not returning static method Landroid/os/Process;.getTotalMemory ()J
02-22 01:00:25.014 17916-17916/org.cocos2d.helloworld D/dalvikvm: GetMethodID: not returning static method Landroid/os/Process;.getFreeMemory ()J
02-22 01:00:25.044 17916-17916/org.cocos2d.helloworld D/AndroidRuntime: Shutting down VM
02-22 01:00:25.044 17916-17916/org.cocos2d.helloworld W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41a22d58)
02-22 01:00:25.044 17916-17916/org.cocos2d.helloworld E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.cocos2d.helloworld, PID: 17916
java.lang.UnsatisfiedLinkError: Couldn’t load cocos2djs from loader dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/org.cocos2d.helloworld-1.apk”],nativeLibraryDirectories=[/data/app-lib/org.cocos2d.helloworld-1, /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.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:249)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:265)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:40)
at android.app.Activity.performCreate(Activity.java:5242)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2164)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2249)
at android.app.ActivityThread.access$800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1212)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5113)
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:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
02-22 01:00:25.124 17916-17916/org.cocos2d.helloworld I/Process: Sending signal. PID: 17916 SIG: 9
以上错误大家是否遇到过,如何处理?


