Android NDK Development: A detailed explanation of the configuration environment _android

Source: Internet
Author: User
One, Windows:
The development environment under Windows requires the following software to be installed:
Java JDK
Apache ANT Build System
Android SDK
Cygwin
Android NDK
Eclipse IDE
1. Install Java JDK
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
To configure environment variables:
Create a new Java_home key with the value set to the JDK installation directory.
Open the path key and increase at the end
;%java_home%\bin
Detection:
Javac-version
2. Install Apache ANT build System
Download and install:
http://ant.apache.org/bindownload.cgi
To set environment variables:
Add the Ant_home key, which is the Apache ant installation directory.
Increase at the end of path:%ant_home%\bin
Detection:
Ant-version
3. Install the Android SDK and Eclipse
Http://developer.android.com/sdk/index.html
To set environment variables:
New
Android_sdk_home key, the value is the installation directory for the Android SDK.
Increase at end of path:
;%android_sdk_home% (the root directory of the SDK)
;%android_sdk_home%\tools (Tools directory contains a platform-independent SDK tool)
Tools;%android_sdk_home%\platform-tools (Plateform-tools directory and platform-related directories)
4, Installation Cygwin:
Android NDK tools are some unix-like commands, and some NDK components are shell scripts. Cygwin is a unix-like environment under Windows.
Download installation:
Http://cygwin.com/install.html
1, select "Install from the Internet"
2, search "make", find GNU make and choose
3, set the environment variable:
New Cygwin_home key, CYGWIN installation directory, added at the end of path;%cygwin_home%\bin
5. Install android NDK
Http://developer.android.com/tools/sdk/ndk/index.html
To set environment variables:
New
The Android_ndk_home key value is the ANDROID NDK installation directory, which increases at the end of path;%android_ndk_home%
6. Install Eclipse
http://www.eclipse.org/downloads/
7, install the Android ADT:
Click Help->install New software,name in Eclipse to enter the Android adt,location input https://dl-ssl.google.com/android/eclipse/,
Select all and install.
Second, MAC OS X
Need to install the software
Xcode
Java JDK
Apache ANT Build System
GNU make
Android SDK
Android NDK
Eclipse IDE
1. Installation Xcode
https://developer.apple.com/xcode/
2. Determine if JDK, ant, and GNU make are installed
Javac-version
Ant-version
Make-version
3, download and install the Android SDK
Http://developer.android.com/sdk/index.html
To set environment variables:
echo Export ANDROID_SDK_HOME=/ANDROID/ANDROID-SDK-MACOSX > >~/.bash_profile
echo Export PATH = \ $ANDROID _sdk_home/tools:\ $ANDROID _sdk_home/platformtools:\ $PATH > > ~/.bash_profile
4, download and install Android NDK
Http://developer.android.com/tools/sdk/ndk/index.html
Setting environment variables
echo Export ANDROID_NDK_HOME=/ANDROID/ANDROID-NDK-R8 > > ~/.bash_profile
echo Export PATH = \ $ANDROID _ndk_home:\ $PATH > > ~/.bash_profile
5. Install Eclipse
Related Article

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.