Build your Java environment and Android environment under Ubuntu:
1. To build the Java environment, please refer to him: Building Java Environment steps
2. After the Java environment is set up, download (sdk+adt+eclipse), link address: include (adt+sdk+eclipse)
Download finished, just unzip.
Recommended look: Domestic Sdk+eclipse+adt
3. Configuration. BASHRC:
sudo gedit. BASHRC (executed under your user's home directory)
Export java_home=/xx/android/jdk1.7 (JDK installation directory)
Export JRE_HOME=${JAVA_HOME}/JRE
Export ANDROID_HOME=/XX/ANDROID/SDK (the directory where the SDK is located)
Export Class_path=.:${java_home}/lib;
Export Path=~/bin:${java_home}/bin:${android_home}/platform-tools:${android_home}/tools:: $PATH
4. After the configuration is finished, execute the source. BASHRC
Execute Javac under the command
Java
Android-v (open does not need to update, close on OK, just to verify)
Print out a lot of information to show that the installation was successful!
5. You're going to get excited about this. Open eclipse, there may be an error:A java RunTime Environment (JRE) or Java development Kit (JDK) must be available in or Der to run Eclipse. No Java Virtual machine is found after searching the following locations: ...
Workaround: Click to open the solution
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Build Java and Android development environment on the simplest Ubuntu in history