It is possible to clone Cocos2d-x from GitHub. If you do that, you must manually run download-deps.py.
If you use the .zip file, it includes the dependencies at the time it was released.
In either case, we do release new versions of the dependencies from time-to-time and you can run download-deps.py at any time to see if you have the latest version of if there is a new version available.
Which ndk should be used with cocos2dx 3.17.2 iam using the latest ndk 19.2
but cpp classes are not linking and undefined reference error shows. though andoid,mk has all the entries
@IzzyJM it is named NDK r19c, but in Android Studio, its version named 19.2.xxx. I am confused with it too. And we will release metal support beta version this week.
Android Studio is what we support now. Command-line development and Eclipse have been deprecated for some time. Itâs way easier in Android Studio to switch NDKs for testing and staying current.
Also CMake is an option. If you are developing for multiple platforms it may be a good option for you. I still prefer Studio for the little bit of Android development I do.
@IzzyJM Yep, after switching to Android Studio, we use it to install/update NDK. But it is a problem that it is not convenient to install specific NDK version in Android Studio, so may be we can manually install NDK.
If we use android studio NDK, do we still have to set the NDK variable in terminal when u run the python command that sets cocos2dx variables ? & I only use iMac to develop for Android & iOS Would using CMake be beneficial for that?(i donât really know much about cmake)
Command line development is still needed for build servers. My jenkins doesnât know about Android Studio, it only knows about the Android SDK (incl NDK). I believe you should create a post in the docs on how to get everything for that, because here are many devs without any Android knowledge.
PS: And it would be a cool bonus, if you would create a docker container for building Android apps. #dreaming
Every OS you can create a docker container for (e.g. Android, Linux - because both can be build via command line). And I believe iOS wouldnât be easy possible.
I was under the assumption that all Android Studio does is provide a GUI for the command line functionality, so gradle builds can always be done from the command line, and that has never changed.
I think the âCommand-line development and Eclipse have been deprecated for some time.â remark was about an alternative way to build with command line based on a cocos script. Isnât that correct?