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