1)
Installation Configuration Ndk
1.1
download NDK and decompress
Download path
Https://developer.android.com/tools/sdk/ndk/index.html
In terminal execution:
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 execution
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, you 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 Run Eclipse, go to menu Help->install New software
3.2 Click the "Add" button on the right, enter https://dl-ssl.google.com/android/eclipse/
3.3 Next, restart Eclipse when installation is complete
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 tools and SDKs that need to be installed, 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