Re-installing the Ubuntu system tonight, reinstalling a eclipse+jdk+sdk Android development platform
One installation configuration eclipse environment
1 Download installation package
Eclipse:eclipse official download website, or directly download http://www.jb51.net/zt/eclipse.html
JDK:JDK official download website, or directly download http://www.jb51.net/softs/75615.html
SDK:SDK official download website, or directly download http://www.jb51.net/softs/312325.html
2 Unzip the download package
Decompression Eclipse:tar ZXVF eclipse-java-indigo-sr1-linux-gtk.tar.gz
Decompression Jdk:tar ZXVF jdk-7u1-linux-i586.tar.gz
Decompression Sdk:tar ZXVF android-sdk_r15-linux.tgz
Move jdk1.7.0_01 to eclipse directory: MV jdk1.7.0_01 eclipse
3 Configuring Eclipse and JDK environment variables
Add at end of file:
Export java_home=/home/yanggang/eclipse/jdk1.7.0_01
Export JRE_HOME=/HOME/YANGGANG/ECLIPSE/JDK1.7.0_01/JRE
export classpath=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATH
export path= $JAVA _home/bin: $JRE _home/bin:$ PATH
source/etc/profile //Enabling environment variables to take effect
4 Create soft links, Quick Launch
CD ~/bin
ln-s/home/yanggang/eclipse/eclipse Eclipse
First look at environment variables: Echo $PATH
If the environment variable does not contain/home/yanggang/bin, the following Add environment variable action is performed;
Edit the. profile file for the current user (Yanggang)
Configure environment variable Path
Path=/home/yanggang/bin: $PATH
Export $PATH
5 Reboot system Ubuntu
Source/home/yanggang/.profile (no reboot system, available source command)
Input: Java-version
(3) Install at Next, restart Eclipse
2 Configuring the Android SDK
(1) Click menu Window->preferences, enter the following interface
(2) Click menu window->android SDK Manager, download SDK Kit
(3) Click menu WINDOW->AVD Manager, create AVD simulator
Additional questions:
1 There is no Android SDK and AVD manager option under Eclipse windows
Workaround: Windows-> Customize perspective-> Command Groups availability-> the android SDK and AVD Manager option in eclipse Hook up-> OK
2 terminal input adb, output "bash:/home/homer/bin/adb:no such file or directory"
WORKAROUND: Show that you are using 64-bit Linux, no 32-bit Run-time library installed $ sudo apt-get install Ia32-libs
3 new Android project, prompted "R cannot be resolved to a variable" error, delete gen and bin, or clean works, Gen are automatically generated R.java files
WORKAROUND: Because the ADB command is not available in the 64-bit Ubuntu system, project--"build project generates Gen/r.java, reference 2" installs the 32-bit Run-time library, then clean again Gen.
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.