1. Prepare the installation package
1. Go to the official website to download adt-bundle-linux and Android-ndk. My environment is ubuntu64bit, so the version I downloaded is:
(1)adt-bundle-linux-x86_64-20131030.zip
Android-ndk-r9b-linux-x86_64 .tar.bz2
Decompress the package and run the command line. Run "./eclipse" to start eclipse.
I encountered the problem that R. java of the android project could not be automatically generated. Later I modified the sdk directory permission under the adt-bundle directory and executed chmod 777 sdk-R ,.
II. Environment Configuration
Because we downloaded adt-bundle, we do not need to manually install the CDT in the software package.
Now, you only need to add some paths to eclipse:
1. Set the NDK path for Eclipse: window --> preference --> NDK, and enter the NDK path on the left side of the Configuration window.
2. The following work is for project configuration. Right-click the project --> properties to modify
2.1 set the Android API version,
2.2. Select project Builders. The default value here is CDT Builders, so you don't need to change it.