1. To set up the AndroidSDK development environment, refer to setting up the AndroidSDK development environment under Ubuntu (image and text). First, set up the AndroidSDK development environment under Ubuntu. 2. Download The NDK Development Kit and open the official website: Workshop ~ /Bin object 1: Build the Android SDK Development Environment
Refer to setting up the Android SDK Development Environment (image and text) In Ubuntu. First, set up the Android SDK development environment in Ubuntu.
2. Download The NDK Development Kit
Open the official website: http://developer.android.com/sdk/ndk/index.html download NDK Development Kit, the current latest version is r7b, such:
Download and unzip ~ For details about how to decompress the tar.bz2 package in the/bin directory, refer to the link: how to package various decommission commands in Linux
3. Configure NDK Environment Parameters
Open ~ /. Bashrc file:
- $ Sudo vim ~ /. Bashrc
Add the following command in the last line of the file:
- Export PATH = $ PATH :~ // Bin/android-ndk-r7b
Save and close.
After this configuration, you can easily use the tools included in the NDK package.
Run the following command to open the terminal:
- $ Ndk-build-v
If the following figure is displayed, it indicates yes.
Complete!