1. Install jdk1.6
Set Environment Variables
Execute vim ~ on the terminal ~ /. Bashrc
Set Environment Variables
Export JAVA_HOME =/usr/lib/jvm/jdk1.5.0 _ 20
Export JRE_HOME =/usr/lib/jvm/jdk1.5.0 _ 20/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH
Run java-version to check whether the installation is successful.
3. Install eclipse. It is recommended to download the j2ee version. It seems that the installation of ADT brought by Fedora has a problem. So
For the convenience of directly downloading the 2XXM (a little big) of the j2ee version ). I downloaded the latest version.
Install the eclipseADT plug-in for Android development.
Help-> Install New SoftWare enter the URL at workwith
Https://dl-ssl.google.com/Android/eclipse
4. Installation
4. Download Android-sdk_r12-linux_x86.tgz download tool, used to download androidSDK tool, download URL: http://developer.android.com/sdk/index.html,tar-xzvf
Android-sdk_r12-linux_x86.tgz, decompress, In a tools Folder to run android, to run with root, sh File Location/android, in Installedpackages
-> Update All.
5. Since it isX64BitTo install the 32-bit Runtime Library, if not skipped (if not installed, the following error may occur: Failed
To get the adb version: Cannot run program "/home/babe/androidadb": java. io. IOException: error = 2)
1./usr/include/gnu/stubs. h: 7: 27: error: gnu/stubs-32.h: No suchfile or directory
Yum install glibc-devel.i686
2. cannot find-lstdc ++
Yum install libstdc ++. i686
3. cannot find-lz
Yum install zlib-devel.i686
4. cannot find libncurses. so.5
Yum install ncurses-libs.i686
5. cannot find-ltinfo
Yum install ncurses-devel.i686
6. X11/Xlib. h, X11/Xatom. h: No file or directory
Yuminstall libX11-devel
7./usr/bin/ld: skipping incompatible/usr/lib64/libreadline. sowhen searching for-lreadline
/Usr/bin/ld: cannot find-lreadline
Yum install readline-devel.i686
8. SDL init failure, reason is: No available video device
Yuminstall libxrandroid. i686
Yum install libx11.i686
9 Yum-y install flex
10Yum install Readline-devel
6. In the eclipse menu, choose Window> preferences> Android> specify the sdklocation location. Also set Virtual Devices, window->
Android SDK and AVD Manager-> New-> get a name and select the SDK version
Follow the steps above to make it ready for use.