Quick-cocos2d-x how to compile the Android version under Windows

Source: Internet
Author: User
1. Download the Android SDK and set the environment variable Android_sdk_root
For example: C:\ANDROID\ADT\SDK
2. Download NDK, set up environment variables, mainly android_ndk_root
For example: C:\android\adt\android-ndk-r10d
3. Install the Java environment and set the JAVA_HOME environment variable
For example: C:\Program Files (x86) \java\jdk1.7.0_40
Path environment variable increased%java_home%\bin
4. Running Build_native.bat
5. May appear: Error:c:\android\adt\sdk/platforms/android-19/android.jar not found! problem
Workaround:
Modify the/quick/bin/lib/build_apk.php in the Quick cocos2dx directory to change $config[' api_ver ' = that number to the maximum number corresponding to your Android SDK, such as 18
6. Run Build_apk.bat, the generated apk should be in a sibling directory, such as tl-20150609-111540.apk

Quick-cocos2d-x how to compile the Android version under Windows

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.