Build an android Development Environment (ADT, Android-studio) on Ubuntu 12.04)

Source: Internet
Author: User

1. Ubuntu 12.04 64-bit

2. Download:

1) El JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2) ADT Bundle: http://developer.android.com/sdk/index.html

3) Android-studio: http://developer.android.com/sdk/installing/studio.html


Install and configure JDK:

$Sudo tar xzvf jdk-7u21-linux-x64.tar.gz-C/usr/lib/JVM

$ CD/usr/lib/JVM

$Sudo MV jdk1.7.0 _ 21/Java-7-sun


Move the downloaded ADT and Android-studio to the following directory.):

/Usr/local/Android Directory: Android-studio eclipse SDK


$Vim ~ /. Bashrc

Add the following lines at the end:

Export android_home =/usr/local/android
Export sdk_home =$ {android_home}/SDK
Export java_home =/usr/lib/JVM/Java-7-sun
Export jre_home =$ {java_home}/JRE
Export classpath =. :$ {java_home}/lib :$ {jre_home}/lib
Export path =$ {java_home}/bin :$ {android_home}/eclipse :$ {android_home}/Android-studio/bin :$ {sdk_home}/platform-tools: $ path


Run:

$ Source ~ /. Bashrc


Finally:

$ Sudo apt-Get install ia32-libs

Run eclipse and studio. Sh.


Reference: http://blog.csdn.net/yang_hui1986527/article/details/6677450

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.