Full process of installing Android Studio on Ubuntu 12.04 (64-bit)

Source: Internet
Author: User

I am very interested in GOOGLE's new Android studio, and I downloaded it from GOOGLE's official website to install it (http://developer.android.com/sdk/index.html). I encountered two problems in the middle and found it for a long time to solve, let's sort it out and share it with you:

ANDROID needs JAVA support, in order to Android4.2 better compilation (it is said that 1.7 compilation will report an error, did not try), I here using the OCRACLE company jdk-6u45-linux-x64.bin (http://www.Oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html) This version to install.

Android Studio [including local downloads in China]

More about Android Studio: http://www.bkjia.com/search.aspx? Where = nkey & keyword = 21639

1. Install JDK

First add execution permission: sudo chmod 777 jdk-6u45-linux-x64.bin

Note the following when creating a folder: sudo mkdir/opt/java, because intel lij only supports three paths for path recognition, install JDK in one of the three:/usr/javaOr /opt/javaOr/usr/lib/jvmI have a problem here.

Move to the directory to install: sudo mv jdk-6u45-linux-x64.bin/opt/java

Sudo/opt/java/jdk-6u45-linux-x64.bin

The task of this installation package is completed, scan: sudo rm-f/opt/java/jdk-6u45-linux-x64.bin

2. Configure JDK

Sudo gedit ~ /. Bashrc plus:

# Set java environment
Export JAVA_HOME =/opt/java/jdk1.6.0 _ 45
Export JRE_HOME = $ JAVA_HOME/jre
Export CLASSPATH = $ CLASSPATH: $ JAVA_HOME/lib: $ JRE_HOME/lib
Export PATH = $ PATH: $ JAVA_HOME/bin: $ JRE_HOME/bin: $ JAVA_HOME/lib: $ JAVA_HOME

Sudo gedit/etc/environment plus:

JAVA_HOME =/opt/java/jdk1.6.0 _ 45 "is the second problem I encountered. I don't know why. At first, I configured the top edge in/etc/profile ~ /. The section added by bashrc does not work. If the JAVA_HOME item cannot be found, the file is directly saved and android studio can be started. And then moved the configuration items of/etc/profile ~ /. Bashrc. I am still very white. I still don't know why I can't read the configuration items of/etc/profile. Maybe I didn't update the environment variable? I can help you back it.

3. Install Android Studio

Sudo mv android-studio-bundle-130.677228-linux.tgz/opt/"" I used the Document Manager to uncompress and move it over
Sudo tar zxvf android-studio-bundle-130.677228-linux.tgz

You can change the directory name to sudo mv/opt/and.../opt/android-studio.

Cd/opt/android-studio/bin

Ls

Sudo studio. sh

OK, the installation is complete, and you can use it yourself later ~~~

I have only encountered these two problems. I 'd like to share them with you. If you have any questions, I 'd like to share them with you ~

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.