3.10 and Android Studio

just watch this video and you are set:

or read this brief explanation of the steps required:

1)- download android studio the full version
2)- create a cocos2d-x project
3)- compile it from the terminal with this command

if you create an ARM virtual machine use this command(not recommended, its slow)

cocos compile -p android --android-studio

if you create a x86 virtual machine use this command(recommended, its fast):

cocos compile -p android --android-studio --app-abi x86

4)- import the file “proj.android-studio” into android-studio
5)- create an android virtual machine(x86 or ARM)
6)- run the android virtual machine
7)- run the project from within android-studio

PS: you should read my comment in this post on how to automate the compilation process so you don’t have to type the command in the command line every time you wanna compile:

PS: remember google is your friend!

6 Likes