Install the software on Ubuntu 9.10 desktop. Install JDK 1.5 and eclipse
3.4. ADT and Android SDK
First install Java
, Enter the TDK command: sudo
Apt-Get install sun-java6-bin
Note: If you are running on an x86_64 system, you must also installIa32-libs
: Sudo apt-Get install ia32-libs.
During installation, you will be asked whether to accept the Java license.
Java 6 does not pass the javadoc error when compiling the Android system source code...
To install jdk1.5
How to install jdk1.5 in ubuntu9.10:
1. To install jdk1.5, add the following content to the end of the/etc/APT/sources. list file.
Deb http://tw.archive.ubuntu.com/ubuntu/
Jaunty main restricted universe multiverse
Deb-Src http://tw.archive.ubuntu.com/ubuntu/
Jaunty main restricted universe multiverse
2. sudo apt-Get update
3. sudo apt-Get install sun-java5-jdk
4. comment out the two rows added in/etc/APT/sources. List.
5. sudo apt-Get update
6. Export java_home =/usr/lib/JVM/Java-1.5.0-Sun (depending on the specific installation path)
7. Export android_java_home = $ java_home
Use the Ubuntu Software Center to download and install eclipse
Then install the android SDK
Download and install the SDK at http://developer.android.com/sdk.
The android-sdk-linux_86 directory contains subdirectories named tools (/home/weichao/Android/android-sdk-linux_86/tools ).
Now we must enable ~ /. Bashrc:
Gedit ~ /. Bashrc
Then add the following statement to make the android-sdk-linux_86/tools on the path we set:
Export
Path =$ {path}:/home/weichao/Android/android-sdk-linux_86/tools
Then install the ADT plug-in.
Click Install new software at the http://dl-ssl.google.com/Android/eclipse/
Install Android development tools
Error:
If the operation cannot be completed. See the details error occurs at next:
You need to install WST
Install WST: In input http://download.eclipse.org/releases/galileo/
Then, only select to install WST (in the last item)
An error occurs in occurred while installing the items
Session Context
Was :( profile = platformprofile,
Phase = org. Eclipse. Equinox. Internal. Provisional. p2.engine. phases. Install,
Operand = NULL --> [R] org. Eclipse. Ant. UI 3.4.1.v20090901 _ R351,
Action = org. Eclipse. Equinox. Internal. p2.touchpoint. Eclipse. Actions. installbundleaction ).
The artifact file for osgi. Bundle, org. Eclipse. Ant. UI, 3.4.1.v20090901 _ R351 was not found.
It indicates that eclipse is not installed either in eclipse-PVDF or in eclipse-jdt.
Solution: sudo apt-Get install eclipse-PVDF
Sudo apt-Get install eclipse-jdt
Set SDK home
Select WINDOW> preferences, select the android tag, and click"Browse
... "Item, select the path of the android SDK directory
Select the android SDK directory (/home/weichao/Android/android-sdk-linux_86)
Error:
If "an SDK target must be specified" appears when you create an android project
"Problem:
Cause:
Google Android SDK
This problem is caused by incomplete installation.
Solution:
Open
Eclipse
Window-> Android SDK and AVD Manager
Select
Android SDK tools, revision5
Proceed
Update all
When downloading the ADT using eclipse, the error "File Transport reader 'has encountered a Problem." is always reported.
Http://www.cnblogs.com/sogbin/articles/1658201.html