Wednesday, January 20, 2016

Setup Android Studio

This tutorial show how to setup Android Studio.

1. Create a game project
2. Open command prompt > type cd and drag and drop game project directory.
3. Type cocos.py compile -p android --android-studio. The compilation will took minutes to             complete.
4. Open Android Studio > under Quick Start click Open an existing Android Studio project.
5. Under your game project folder directory, click proj.android-studio folder.
6. Now you have successfully setup Android Studio. To build and run the project just click the button     as figure show below.
 
7. To add or edit code, under file menu top left > click open > locate your game project folder > select the root of game project folder > Click Ok.
8. Now you have open Android Studio Windows for code editing. To build and run game project you need to go to previous Android Studio windows. 

Note : For easier coding try to use Visual Studio 2012 to develop android game for auto-complete feature. For debug/deploy on android using command prompt.

0 comments:

Post a Comment