Cocos2dx3.2 Memorandum for setting up a development environment on the android platform, cocos2dx3.2android
Platform: win32 + android
Cocos2d version: 3.2
Build cocos2d-x android FAQ:
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 shoshould be equal/larger than 20
Solution:
If you encounter this problem
Create an empty android-20 folder under, this problem has plagued me for a long time! Check whether the command is-ap 20 (dual -). Check whether project. properties in the \ proj. android directory is android-20.
Question 2:
Cocos run-p android error: incorrect file name and directory name volume label syntax,
Solution:
1) modify the cocos2dx folder
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
Command = "% s clean % s-f % s" % (self. _ convert_path_to_cmd (ant_path), build_mode, buildfile_path)
2) then use cmd to move to the project folder and run cocos run-p android
Question 3:
During compilation, the system prompts that the gcc object chain (Couldn "" t find the gcc toolchain) is not found )?
Solution:
This question has been bothering me for a long time! Check the device path of the ndk! Is NDK_ROOT correct! The NDK required by version 3.1 is the latest version. Go to the android website http://developer.android.com/tools/sdk/ndk/index.html#installingto download the latest javasr9d!
Question 4:
The directory "android-19" can't be found in android SDK
Solution:
Check whether the ANDROID_SDK_ROOT environment variable has an additional clause. If yes, remove the clause.
Build an android Development Environment
Answer:
1. Eclipse, which does not need to be installed. After downloading it from the official website, decompress the package. It cannot be started yet.
2. JDK: Download the installation package from the official website and decompress it. After installation, Eclipse can be started normally. Now, you can create a Java project, but you cannot create an Android project.
3. Download the online installation package from the official website and install the Android SDK online (time-consuming ).
4. Install the ADT plug-in online or offline.
5. Eclipse introduces the Android SDK (window-preferences-Android), and then you can create an Android project. The Android development platform is basically set up.
How to Build the development environment of the current android platform --
Install JDK first, and then go to mongo.android.com/sdk/index.htmlto go to sdkbar. The sdks for Eclipse, ADT, and 4.1 are included.