Download
Android Cocos2d-x: FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp from loader dalvik.system.PathClassLoader :
In the first time when run the app, I got the follow errors from Logcat.
05-21 09:08:15.060: E/AndroidRuntime(21388): FATAL EXCEPTION: main 05-21 09:08:15.060: E/AndroidRuntime(21388): java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp from loader dalvik.system.PathClassLoader[dexPath=/data/app/download24h.info.hello-2.apk, libraryPath=/data/app-lib/download24h.info.hello-2]: findLibrary returned null 05-21 09:08:15.060: E/AndroidRuntime(21388): at java.lang.Runtime.loadLibrary(Runtime.java:355) 05-21 09:08:15.060: E/AndroidRuntime(21388): at java.lang.System.loadLibrary(System.java:525) 05-21 09:08:15.060: E/AndroidRuntime(21388): at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:207) 05-21 09:08:15.060: E/AndroidRuntime(21388): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:222) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.Activity.performCreate(Activity.java:5372) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.ActivityThread.access$700(ActivityThread.java:159) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.os.Handler.dispatchMessage(Handler.java:99) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.os.Looper.loop(Looper.java:176) 05-21 09:08:15.060: E/AndroidRuntime(21388): at android.app.ActivityThread.main(ActivityThread.java:5419) 05-21 09:08:15.060: E/AndroidRuntime(21388): at java.lang.reflect.Method.invokeNative(Native Method) 05-21 09:08:15.060: E/AndroidRuntime(21388): at java.lang.reflect.Method.invoke(Method.java:525) 05-21 09:08:15.060: E/AndroidRuntime(21388): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046) 05-21 09:08:15.060: E/AndroidRuntime(21388): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862) 05-21 09:08:15.060: E/AndroidRuntime(21388): at dalvik.system.NativeStart.main(Native Method)
The solution is given including articles have similar error, or a part of it
Solution 1: The article: cocos2d-x for Android, UnsatisfiedLinkError: Couldn't load cocos2dcpp
Solution 2: The article: Couldn't load cocos2dcpp
Solution 3: The article: Android crash: java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared
Solution 4: The article: Creating multi-platform games with Cocos2d-x version 3.0 or later
To be continued...
0 comments :
Post a Comment