The establishment of Android development environment in Linux environment, linuxandroid
This article describes how to build an Android development environment in Ubuntu. The IDE is Eclipse (similar to Android Studio, and you can skip the steps of configuring the SDK and installing the adt plug-in ).
1. Install JDK
(1) JDK8: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
(2) Select the Linux version for download. If the tar package is downloaded, run the # tar xvzf xxx.tar.gz command to decompress the package. If the rpm package is downloaded, run the rpm-ivh xxx command. rpm for installation.
(3) configure the environment variable: Execute the command vi/etc/profile to edit the profile configuration file and add the following lines:
Export JAVA_HOME = "jdk path"
Export PATH = $ JAVA_HOME/bin: $ PATH
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
2. Install the SDK
(1) Ubuntu x64 system requires 32-bit library files for 32-bit programs
Sudo apt-get install-y libc6-i386 lib32stdc ++ 6 lib32gcclib32ncurses5 lib32z1
(2) SDK download official website http://developer.android.com/sdk/index.html, domestic image http://gmirror.org/#android-sdk-tools-only
# Tar xvzf xxx.tar.gz
(3) $ sudo vim/etc/profile
Add the following content
Export PATH =/usr/local/android-sdk-linux/tools:/usr/local/android-sdk-linux/platform-tools: $ PATH
3. Install eclipse
Download eclipse for linux and install http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/neonr
4. Install the adt plug-in
(1) Start Eclipse and select Help> Install New Software
(2) Click "Add" and enter "ADT" in "Name". In "Location", enter "http://dl-ssl.google.com/android/eclipse/#, and" adt# "corresponds to" sdk.
(3) configure the ADT plug-in
Select Window> Preferences, select Android in the list on the left, and specify the SDK path.
(4) add platforms and other components
Select Window> Android SDK Manager, select a Platform, and install