Ubuntu14.04 64bit install Android Studio

Source: Internet
Author: User

Reprint Please specify Source: http://blog.csdn.net/bettarwang/article/details/44871583

Google's Android studio now, in addition to the NDK and plug-ins compared to the lack of eclipse, all the other aspects have been completely beyond Eclipse, as an Android developer, try to use a better IDE, perhaps to achieve a multiplier effect. Well, nonsense not much to say, below to get to the chase.

I used Ubuntu12.04 32bit and Ubuntu14.04 32bit to install Android studio smoothly, but there are a lot of problems when using Ubuntu14.04 64bit, so this article focuses on Ubuntu14.04 The process of installing Android Studio under 64bit.

Do two preparations before installing Android Studio.

The first preparation is to install JDK1.7, be careful not to install JDK1.8, because JDK1.8 out the time is not long, in a lot of Android developer site has a clear hint.

The process is as follows:

1. Enter Oracel website to download the JDK, we recommend downloading jdk7u75;

2. Unzip after download:

sudo tarzxvf jdk*.tar.gz

And then copy the extracted files to/USR/LIB/JVM (JVM This directory is the need to create their own new, of course, can also use other names, such as Jdk,java), of course, can also be extracted directly into the/USR/LIB/JVM;

3. Enter the directory:

Cd/usr/lib/jvm

4. Because the name of the JDK is too long, it is recommended that you modify the name or create a soft link to facilitate the writing of the environment variable later: sudo ln-s jdk1.7.0_75 jdk7

5. Configure the environment variables, here you can configure the BASHRC file, you can configure the/etc/profile, but the configuration/etc/profile better, because BASHRC is actually for the bash shell, if you switch to the other shell, it does not work, and/ Etc/profile is the real Global environment variable. The command is as follows:

(1)

sudo vim/etc/profile

(2)

Gg
(This command can be directly to the end of the file)

(3) Add the following to the end of the document:

   Export JAVA_HOME=/USR/LIB/JVM/JDK7 export   jre_home=${java_home}/jre   export classpath=.:${java_home}/lib:$ {jre_home}/lib   export path=${java_home}/bin: $PATH

(4) Save and exit:

Wq

6. Since there may be default JDK in Ubuntu, such as OPENJDK, to set our installed JDK as the default JDK version, do the following:

<span style= "FONT-SIZE:18PX;" >sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk7/bin/java 300sudo update-alternatives-- Install/usr/bin/javac Javac/usr/lib/jvm/jdk7/bin/javac 300sudo update-alternatives--install/usr/bin/jar jar/usr/ Lib/jvm/jdk7/bin/jar 300sudo update-alternatives--install/usr/bin/javah javah/usr/lib/jvm/jdk7/bin/javah 300sudo Update-alternatives--INSTALL/USR/BIN/JAVAP JAVAP/USR/LIB/JVM/JDK7/BIN/JAVAP 300</span>

7.

sudo update-alternatives--config java

8. Enter Java-version, if you can see the version description, the JDK installation was successful.

It's just that the first preparatory work, the real key is the second preparation.

Due to the lack of some library files on Ubuntu 14.04 64bit, the library files should be installed first and the following commands should be executed:

<span style= "FONT-SIZE:18PX;" >sudo apt-get Install libc6:i386 libncurses5:i386 libstdc++6:i386</span>

9. Go to Android Developer website to download Android Studio for Linux, unzip to the specified directory after downloading, then enter android-studio/ Execute the studio.sh file in the bin, the Start page appears, followed by its prompt to download the appropriate components. Because the process is simple, here is no longer to repeat.

Ubuntu14.04 64bit install Android Studio

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.