Android Studio Installation and Setup
A supported environment. See Installation Prerequisites
Completed the Android Command-Line Instructions
Cocos2d-x v3.x http://cocos2d-x.org/download
Android Studio 2.1 https://developer.android.com/studio/index.html
unzip the Android Studio Bundle
launch Android Studio
cpp-testsproject from cocos2d-x root/tests/cpp-tests/proj.android-studio in Android Studio. Android Studio will do everything required. You can run
cpp-testsbut clicking on the play button.
Installing new SDK versions and build tools
use the built in SDK Manager to install the SDK versions and build tools that you are targetting.
Note: It is important to note that Android Studio uses a location to install SDK versions and build tools that is not the same as if you were doing command-line development. Double check that you have everything you need installed from inside Android Studio.
Starting a new project
Once everything above works, you can start a new project! To do this, read our document on the Cocos Command-line tool.