How to use Android Studio with Cocos2d-x

て烟熏妆下的殇ゞ 提交于 2019-12-04 02:50:20

Android Studio currently isn't well set-up for native programming. While the build system supports the NDK, there's no editor support for C++ files (it's not as if it won't work, but the IDE won't give you any editing assistance), and neither is there any debugging support. JetBrains has announced that they're working on new C++ support for IntelliJ, and this is something we're looking at for Android Studio, but it's not on the roadmap yet.

Recent version of cocos2dx v3 (from github for example) have proj.android-studio project

At this moment I have no success to build it but maybe in future it will be fixed

I just went through the setup for this example code. The project compiles and has a ton of sample code. Scott Barta's answer still stands as an important caveat, but wanted to share the link in case it was useful.

I also found this useful for some NDK background/how-to.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!