Configuring the Android Development environment on Mac OS

Source: Internet
Author: User
Tags android sdk manager

1) Installation Configuration Ndk
1.1 download NDK and decompress

Download path
Https://developer.android.com/tools/sdk/ndk/index.html

Run in Terminal:
chmod a+x Android-ndk-r10d-darwin-x86_64.bin
./android-ndk-r10d-darwin-x86_64.bin


1.2 set the path of the NDK to a system environment variable
Adding variables to the/etc/profile file
Terminal Run
sudo su
chmod +w/etc/profile
Vi/etc/profile
Insert
Export path= $PATH:/android-ndk-r10d-darwin-x86_64.bin/:/android-ndk-r10d/platform-tools/
Save exit
Chmod-w/etc/profile

Can now be compiled with Ndk-build and can use the ADB command


2) Download and install Eclipse
Http://www.eclipse.org/downloads/?


3) Installing Android Developer Tools (ADT)
Https://developer.android.com/sdk/installing/installing-adt.html


3.1 Execute Eclipse, go to menu Help->install New software
3.2 Click on the "Add" button on the right and enter https://dl-ssl.google.com/android/eclipse/
3.3 Next, restart Eclipse after installation
3.4 Enter the menu "Preference"->android set the NDK installation path


4) Installing the SDK package
4.1) Enter Android SDK Manager in eclipse
4.2) Select the tools and SDKs you need to install, such as Android5.0.1 (API 21)
4.3) Click Install to start the download


To this end, the NDK compilation and the Eclipse development environment are configured successfully.

Configuring the Android Development environment on Mac OS

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.