app crashes on start up

  • fechox
    Likes 0

    Problem Description

    I’m having a puzzling problem here.

    I created a small game, it works fine when I run it on my phone (Samsung Galaxy S3 i9305) via the USB debugging.

    I then created an apk with a debug keystore and installed on my phone, but as soon as it starts it crashes; checked logcat and this is the message I get:

    [ 08-04 20:54:24.705 11406:11406 E/AndroidRuntime ]

    FATAL EXCEPTION: main

    Process: com.danix3000.BallsAndRocks, PID: 11406

    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "atof" referenced by "libcocos2djs.so"...

        at java.lang.Runtime.loadLibrary(Runtime.java:365)

        at java.lang.System.loadLibrary(System.java:526)

        at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:207)

        at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:222)

        at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:47)

        at android.app.Activity.performCreate(Activity.java:5582)

        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2405)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2500)

        at android.app.ActivityThread.access$900(ActivityThread.java:171)

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)

        at android.os.Handler.dispatchMessage(Handler.java:102)

        at android.os.Looper.loop(Looper.java:146)

        at android.app.ActivityThread.main(ActivityThread.java:5679)

        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:1291)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)

        at dalvik.system.NativeStart.main(Native Method)

     

    I tried creating the apk on a different computer to no avail, then created a new project based on the Parkour sample for Cocos2d-JS V3.6, same result; installed on 2 different phones, same result. I can’t even get the HelloWorld default app to run on the phone after it’s been packaged.

    So I don’t know what’s happening, any ideas? 

    I have exactly the problem described here: http://www.sonarlearning.co.uk/questions.php?question-topic=55

    My dev Environment is Windows 7, Cocos2d-JS V3.6.1, Cocos IDE V1.1, NDK r10c, java 1.8, NDK 1.9.4, sdk 24.3.3, Phyton 2.7


  • fechox
    Likes 2

    This has been solved, if anyone is interested go to http://discuss.cocos2d-x.org/t/which-one-to-use-ndkr9d-or-ndkr10c/23042

     

  • Sonar Systems admin
    Likes 0

    Good to hear.

Login to reply