Hi, i undated my cocos creator to 1.8.1 and i build my project, it completed and when i run the app it crashes on start. this migration is really frustrating: PLEASE HELP!..my log cat showed me this error:
/vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:359)
at java.lang.System.loadLibrary(System.java:514)
at org.cocos2dx.lib.Cocos2dxActivity.a(Unknown Source)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Unknown Source)
at org.cocos2dx.javascript.AppActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5122)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2277)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.access$600(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5336)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system
so i build, and generated the apk, when i run it crashes, when you go to the logcat on android studio i see this error, again PLEASE HELP:
cannot locate symbol “rand” referenced by “libcocos2djs.so”…
03-16 19:39:35.454 25662-25662/? E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol “rand” referenced by “libcocos2djs.so”…
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:514)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:251)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:280)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:40)
at android.app.Activity.performCreate(Activity.java:5122)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2277)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.access$600(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5336)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
still no luck, its frustrating trying to get this to work, is reverting back to cocos creator 1.6.1 a bad thing? because my application worked perfectly before the update
i reverted back to 1.6.1 and my project works perfectly again, i thought updating wouldnot have been so much trouble but it started to frustrate me, thanks for the solution though, this will help many others with this problem hopefully
It is a bug about Android Studio that not support path which is longer than 256 characters. Place your project just in C:/Coco2dxProject will solve this problem. We have added some warning in 1.10 to avoid frustration