Configuring the Windows development environment
First go to official website download Cocos engine v2.1 for Win
After download is installed, assuming that the installation is D:/cocos, after the installation is complete, it is not possible to create a blank complete project, click
, it will only appear
Then we'll go to the store to download
After the download is complete, go to download , download, find Cocos Framework, click Install, can install to D:/cocos.
After the installation is complete, you can create a new
Once the new is complete, you can enter proj.win32 to open the VS project.
Configuring the Android development Environment
1. Span style= "FONT-SIZE:12PT; Font-family: Song body "> download to official website download jdk8 + version , note that according to the system is 32 bit or 64 bit
2. Span style= "FONT-SIZE:12PT; Font-family: Song body "> download ANDROID-NDK-R10D,  32 bit 64 ,
3. Download android-sdk
recommend a blog, about the download of Android development tools, http://blog.csdn.net/gyming/article/details/8168166/
4. Add Environment Variables
ANDROID_SDK_ROOT:ANDROID-SDK installation path, such as D:\JAVA\Android_SDK\sdk
JAVA_HOME:JDK installation path, such as D:\JAVA\jdk1.8.0_25
NDK_ROOT:NDK installation path, such as D:\JAVA\android-ndk-r10d
How to compile Android
First enter the proj.adnroidof the project directory under the console, input command
Cocos compile-p Android, if there is a similar
The configuration is successful, the generated apk is in the / Engineering directory /bin/debug/android
The development environment configuration is complete.
Cocos (V2.1) engine built in Windows and Android development environment