cocos2dx3.2 Android platform to build development environment error correction memo

Source: Internet
Author: User

Platform: Win32 + Android

Cocos2d version: 3.2


Build Cocos2d-x Android FAQs:


Question 1:


Android platform not specified, searching a default one ... Can ' t find right android-platform for project: "F:\cocos2d-x-3.1.1\tests\cpp-tests\proj.android". The android-platform should be equal/larger than 20

Solution:

If you encounter this problem, then you need to



Under Create an empty android-20 folder, this problem pits me for a long time! Also check to see if the command is –ap 20 (double-). Also check if the project.properties in the \proj.android directory is android-20






Question 2:


Cocos run-p Android Error: File name, directory name volume banner method is incorrect,

Solution:


1) Modify the Cocos2dx folder
.. The build_android.py in \tools\cocos2d-console\plugins\project_compile


Command = "%s clean-f%s-dsdk.dir=%s"% (Self._convert_path_to_cmd (Ant_path), Buildfile_path, self._convert_path_to_ CMD (sdk_root))
Change into


command = "%s clean%s-f%s"% (Self._convert_path_to_cmd (Ant_path), Build_mode, Buildfile_path)


2) Then use CMD, move to project folder, run Cocos run-p Android




Question 3:


At compile time, you are prompted not to find the GCC object chain (couldn "" t find the GCC toolchain)?


Solution:

This topic also annoyed me for a long time! Check the NDK's device path! Ndk_root is correct! Then the 3.1 version required the NDK is the latest version, go to the Android website http://developer.android.com/tools/sdk/ndk/index.html#Installing next latest version r9d!




Question 4:


The directory "android-19" can ' t be found in Android SDK


Solution:

You look at the next android_sdk_root environment variable is not one more clause. If so, remove the clause.

cocos2dx3.2 Android platform to build development environment error correction memo

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.