Cocos (V2.1) engine built in Windows and Android development environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.