Build an android development environment in Ubuntu (and handle error exceptions)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.