New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cocos2d-x-js crashes on android 4.4 when using NDK-r10d #1288
Comments
Can you try NDK r10c ? Our test is based on this version, it's also the official supported NDK version |
Any news on this ? |
Got the same crash on Android 4.4 with NDK r10c. |
I can also confirm the same error on Android 4.4.4 with NDK r10c. |
Guys, we have moved js to -x repo, which version are you using ? Which project are you compiling ? how are you compiling ? |
Also with me: I get this bug on Android 4.4.4 with NDK r10e and either cocos2d-x-3.7.1 or cocos2d-x-3.6.1. I found a conversation that seem to have solved it: http://discuss.cocos2d-x.org/t/need-help-android-app-crash-on-launch/18908 But I couldn't solve it with this description. I didn't find out how to define rand() in a way, that the runtime accepts it. The atof error disappeared. I tried the test project from the 3.7.1 repo. And an own project, that runs fine on Android 5. Compiling? I just use "cocos run -p android" in a fresh downloaded repo. |
I moved to 3.7.1 too. And everything seems to be fine. |
I solved it! I think the problem was, that I used Android SDK API-22 and had as minimum API 10 defined in AndroidManifest. So now I use API-10 and it works on Android 4.4.4. My ndk is r10e. I think there is no reason to use a new API with cocos2d-x. (objections welcome!) |
Thanks @lavisrap for your clarification ! I will close this issue, if someone met new problems, please open a new one in https://github.com/cocos2d/cocos2d-x/issues |
same issue here, I am using android sdk 22, ndk r10e, cocos2d-x 3.14.1, @lafisrap's suggestion doesn't work for me. I am using cocos creator and JS. |
according to cocos2d/cocos2d-x#15234, setting APP_PLATFORM := android-19 helped me in this case. |
compiles and runs fine with NDK-r9d, however the screen is blank.
Running on android 4.4... from what I googled.. it should work fine on 5.0, however anything older will crash.
The text was updated successfully, but these errors were encountered: