![]() ![]() Now it’s time to repeat the last procee to configure the ANDROID_SDK_ROOT. Otherwise, the scripts will fail due to error path value. In our case, we could input /Users/guanghui/AndroidDev/android-ndk-r9d/.Ĭaution: You must expand the ~ sign to your own user directory path. If you haven’t configured this environment before, it will prompts you the environment variable is not found and you should enter the path of your NDK. It added the COCOS2D_CONSOLE_ROOT environment variable to point to the bin directory under ~/cocos2d-x/tools/cocos2d-console directory.Īnd then it looked for an NDK_ROOT environment variable. Now, type python setup.py and you will get the following results: If you type ls command, it will show you all the files. Without any further ado, let’s rock! Use setup.py to configure your android development environmentĪt first, open your Termial and cd to ~/cocos2d-x. If you are a homebrew user, you could simply type the following command in your terminal to install ant:īrew install ant Time in Action - Step By Step GuidesĬonfigure Andriod development environment is really tough but worth it, isn’t it? If the homebrew isn’t installed on your system, please refer to this link for more information.Īt last, let’s install ant tools. We recommend you install python with homebrew. If there is a prompt like “command not found: python” which means your python environment is not correct, you should install it. Let’s do the final verification.Īt first, we should verify that python 2.7 is installed and it is accessible under the current user’s environment which means you could type python -version in your Terminal(or Command Line on win32) and it will give you the following result: Verify Your EnvironmentĪha, we have installed all the required softwares. In our case, it is under the ~/AndroidDev directory. When we are writing this article, the latest version of NDK is r9d.Īfter downloading it, unzip the package at the same location of the Android SDK. You could always prefer the latest version. You could launch the Eclipse and install other SDK versions. The folder contains two folders: sdk and eclipse. So we don’t need to download an extra Eclipse and install the ADK manually any more.Īfter downloading it, unzip the package at ~/AndroidDev directory. The bundle includes the newest Android SDK version plus an Eclipse version with Android Development Tool installed. ![]() If you are using Mac, click this link to download ADT Bundle for Mac. Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0_51-b13) As to cocos2d-x, you could upgrade the JDK and we recommend you to install JDK 1.6 or 1.7) java version "1.7.0_51" (Note, the java version number may be different, but it’s doesn’t matter. If the following lines shown on your Terminal then you may have get ] properly installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |