1. Prepare the following documents
1) Androidstudio:https://dl.google.com/dl/android/studio/install/1.1.0/android-studio-bundle-135.1740770-windows.exe
2) Ndk:https://dl.google.com/android/ndk/android-ndk-r10d-windows-x86_64.exe
3) Ant:http://apache.fayea.com//ant/binaries/apache-ant-1.9.4-bin.zip
4) Python (2.7.9): Https://www.python.org/ftp/python/2.7.9/python-2.7.9.amd64.msi
2. Configuring the Environment
I put all the files in the D:\Android directory for good management.
1) Java Environment configuration we own Baidu
2) NDK Configuration
After installing the system variables in the system variables:
3) Ant Configuration
After installing the system variables in the system variables:
4) SDK Configuration
When installing Androidstudio will ask you to select the SDK installation directory, which is the directory in.
5) Python Installation
Python is added to the environment variable during installation:
3. After configuring the environment, we begin to test the environment
1) Create a new project for Cocos2d-x 3.4.
2) Open Androidstudio
Select only the options shown below
Cocos2d-x 3.4 Compiling the configuration on Androidstudio