This tutorial will demonstrate set up Android Studio. Here are the previous posts to complete before you get started with this part 5:
Currently, Cocos2d-x does still not support to build and run Cocos2d-x projects directly in Android Studio. You need to build code with Cocos Console command lines. The purpose of running game in Android Studio is to set up some third parties such as Admob, Facebook SDK etc... Frankly to say that if you want to run, debug and set up third party configurations better, you should use Eclipse rather than Android Studio.
But if you still want to build Cocos2d-x game with Android Studio, here are the details step to set up Android Studio before building Cocos2d-x projects:
Step 1: If you open Android Studio at the first time, it will ask for importing the old configs, select the second option and click "OK".
Step 2: Then it will download somethings. Just leave it until it finishes the download. The download may be failed but no worry, as sooner or later we will remove the unnecessary items.
Step 3: After the "Android Studio Setup Wizard" displays, select "Configure"...
Step 4: Select "SDK Manager"...
Step 5: Click on "Launch Standalone SDK Manager"...
Step 6: After the Standalone SDK Manager displays, select "Deselect All" to ignore the unnecessary updates.
Step 7: As Cocos2d-x 3.9 Android Studio project requires "Android SDK Build-tools" version 22.0.1 and SDK Platform 22 (Android 5.1.1), In the list of packages, select those options:
Then installing those packages and wait until they are done. You have completed the part 5 to set up Android Studio. In the next part, I will show you how to build games with Cocos Console.
Yumiki.
No comments :
Post a Comment