-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Default NDK no longer supported for Google Play Store uploads. #20754
Comments
There is an existing fork of Cocos2d-x v4 that works with the latest NDK, so perhaps you can back-port the changes if you don't want to use the fork. You can find it here. |
I am using NDK 22 almost latest, with this cocos2dx v4, I just changed NDK path resided in local.properties file and it works |
Thanks rh101, I'll have a crack with that. I noticed all the NDK r22 releases led to runtime crashes when I tested this out with a Cocos2d-x project on a Pixel 6. Besides, even though NDK r22 is a relatively new release (March, 2021), NDK r22 is still too low to meet the current app store requirement. Android 12 was released in October, 2021 and requires NDK r23. |
With the fixes mentioned in the answer, I'm no longer having any runtime crashes. |
When I use the Ndk r23, the following errors will be reported when compiling, but the Ndk r21 can be used normally. What should I do?: ld: error: lib/libluacocos2d.a(CCLuaEngine.cpp.o): unable to find library from dependent library specifier: lua51.lib |
It would seem that as it is, this engine can no longer be used to build games which can be published on the Google Play Store.
As of November 2022 Google Play Store uploads require Android 12 ( API level 31 ) as a minimum target API level.
Android 12's minimum required NDK version is now NDK r23 (NDK 23.0.7599858)
Steps I took to fix:
The text was updated successfully, but these errors were encountered: