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