Configuration of 64-bit Ubuntu under Android development environment

Source: Internet
Author: User

This article describes how to build an Android development environment on 64-bit Ubuntu.

System: Ubuntu12.04lts

Using ADT Bundle for Linux and jdk1.7 (open JDK also available)

Altogether divided into 3 steps:

1. Configuring the JDK

Installing the Open JDK

$sudo Apt-get Install OPENJDK-7-JDK

Or

Download from Oracle website

Download JDK64-bit version from official website

Unzip the installation

Copy the extracted files to/USR/LIB/JVM with the highest permissions

sudo cp-r ~/jdk1.7//USR/LIB/JVM

(Middle two "/" Not connected, with a space)

modifying environment variables

sudo gedit ~/.profile

At the end, add

Export java_home=/usr/lib/jvm/jdk1.7

Then save the shutdown and update it with source

$ source ~/.profile

Configuring the default JDK version

$ sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk1.7/bin/java 300

$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.7/bin/javac 300

$ sudo update-alternatives--config java

$ sudo update-alternatives--config javac

Confirm that the JDK is installed successfully

$ java-version

If you see the Java version "1.7.XXXX", it means that the installation was successful.

2. Installing ADT Bundle for Linux

Download ADT bundle for Linux from Google's website, which contains the Android SDK and Eclipse, and has already installed ADT.

Unzip to the installation directory when the download is complete.

Perhaps you would also like to:

Open Eclipse

Execute Help--Install New software ...

Click Add ...

In the popup dialog box, fill in the Name:android Developer Tools Update Site, location:http://dl-ssl.google.com/android/eclipse/

Complete

I did this because I found that the site was missing when I updated it, not to install ADT.

3. Installing Ia32-libs

The previous may be similar to the 32-bit Ubuntu installation, but this is what must be done on the 64-bit system, otherwise it will appear (... adb: error=2, no file or directory) such errors. The reason is that Android SDK only 32bit program, need to install ia32-libs, in order to use.

$ sudo apt-get install Ia32-libs

Note: Ia32-libs is larger than

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.