Build android with eclipse + JDK + SDK on Ubuntu

Source: Internet
Author: User
Tags android sdk manager

We re-installed the Ubuntu system tonight and re-installed an eclipse + JDK + SDK Android development platform.

1. install and configure the eclipse Environment

1. Download the installation package

Eclipse:EclipseDownload the official website or directlyEclipse-jee-indigo-SR1-linux-gtk.tar.gz

JDK:JDKDownload the official website or directlyJdk-7u1-linux-i586 .tar.gz

SDK: SDKDownload the official website or directlyAndroid-sdk_r15-linux. tgz.

2. decompress the downloaded package

ExtractEclipse:Tar zxvf eclipse-java-indigo-SR1-linux-gtk.tar.gz

ExtractJDK:Tar zxvf jdk-7u1-linux-i586.tar.gz

Decompress SDK:Tar zxvf android-sdk_r15-linux.tgz

Move jdk1.7.0 _ 01 to the eclipse directory:MV jdk1.7.0 _ 01 eclipse

3. Configure eclipse and JDK Environment Variables

Sudo VI/etc/profile

Add at the end of the file:

ExportJava_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

4. Create a soft link for Quick Start

Cd ~ /Bin

Ln-S/home/Yanggang/Eclipse/eclipse

Edit the. profile file of the current user (Yanggang)

VI/home/Yanggang/. Profile

Configure the environment variable path

Path =/home/Yanggang/bin: $ path
Export $ path

5. restart the system Ubuntu

Source/home/Yanggang/. Profile (do not restart the system, use the source command)

Input:Java-version

If the Java version information is displayed, the installation is successful!

Now you can start eclipse

Eclipse &

2. install and configure the android Environment

1. Install the android development plug-in

(1) Open eclipse and choose help> install new software --> Add on the menu bar.


(2) enter the URL:Https://dl-ssl.google.com/android/eclipse/ (If an error occurs, change HTTPS to HTTP.)

(3) one-way next installation,Restart eclipse


2. Configure the android SDK

(1) Click WINDOW> preferences to go to the following page:

(2) Click the menu window> Android SDK manager to download the SDK kit.

(3) Click the menu window> AVD manager to create an AVD simulator.

Reference recommendations:

Installing the SDK (Android Developer)

Build android with eclipse + JDK + SDK in Windows

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.