Android NDK Development One: Configuring the Environment

Source: Internet
Author: User

First, 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's installation directory.

Open Path key, add at end

;%java_home%\bin

Detection:

Javac-version

2. Install Apache ANT Build System

Download and install:
http://ant.apache.org/bindownload.cgi

Set Environment variables:
Add the Ant_home key, which is the Apache ant installation directory.

Add 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

Set Environment variables:

New

The Android_sdk_home key, which is the installation directory for the Android SDK.

Add at the end of path:

;%android_sdk_home% (root directory of the SDK)

;%android_sdk_home%\tools (Tools directory containing platform-independent SDK)

Tools;%android_sdk_home%\platform-tools (Plateform-tools directory and platform-related directories)

4, Installation Cygwin:

Android NDK Tools are some of the unix-like commands, and some NDK components are shell scripts. Cygwin is a unix-like environment under Windows.

Download the installation:

Http://cygwin.com/install.html

1. Select "Install from Internet"

2. Search "make" to find GNU make and select

3. Set Environment variables:
Add the Cygwin_home key, the installation directory value of CYGWIN, increase at the end of path;%cygwin_home%\bin

5. Install Android NDK

Http://developer.android.com/tools/sdk/ndk/index.html

Set Environment variables:

New

Android_ndk_home key value for ANDROID NDK installation directory, added at end of path;%android_ndk_home%

5. Install Eclipse

http://www.eclipse.org/downloads/

6. Install Android ADT:
In Eclipse, click Help->install New software,name enter Android adt,location input https://dl-ssl.google.com/android/eclipse/,

Select all and install.

Second, MAC OS X

Need to install software

Xcode

Java JDK

Apache ANT Build System

GNU make

Android SDK

Android NDK

Eclipse IDE

1. Install Xcode

https://developer.apple.com/xcode/

2. Determine installed JDK, ant, and GNU make

Javac-version

Ant-version

Make-version

3. Download and install the Android SDK

Http://developer.android.com/sdk/index.html

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

Android NDK Development One: Configuring the Environment

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.