본문 바로가기

안드로이드

Android studio cocos2d-x 빌드 방법

Android Studio is only partially supported in cocos2d-x 3.7 and 3.8. With the default project you will only be able to run your app without debugging using Android Studio.


Prior to running your app in Android Studio you will have to compile using the Android Studio flag:


cocos compile -p android --android-studio


You will have to run this command after any changes to your app are made, since the default Android Studio currently doesn't compile your project.


Furthermore the default Android Studio project does not include the Classes directory.


Suggestion: Use Eclipse or Xcode to develop your cocos2d-x projects for now. Hopefully future versions of cocos2d-x will have better support for Android Studio out of the box, this is critical considering Google is dropping support for Eclipse.


위의 키워드를 cmd에서 한 후 프로젝트를 임포트하면 됩니더.

'안드로이드' 카테고리의 다른 글

cocos2d-x 3.6 안드로이드 빌드  (0) 2015.05.29
[앱위젯] pendingItent getActivity  (0) 2015.04.09
[앱위젯] appwidgetManager  (0) 2015.04.08