Ubuntu Android-studio

Source: Internet
Author: User

, download the JDK, I downloaded the jdk-7u51-linux-i586.tar.gz
I have a JVM folder here, Direct CD Past:
$ cd/usr/lib/jvm/
Copy the downloaded jdk-7u51-linux-i586.tar.gz to the JVM folder:
$ sudo cp ~/download/JDK-7U51-LINUX-I586.TAR.GZ/USR/LIB/JVM
Extract:
$ sudo tar-zxvfjdk-7u51-linux-i586.tar.gz
Set Environment variables:
$ sudo gedit/etc/profile
Append at end of document:
Exportjava_home=/usr/lib/jvm/jdk1.7.0_51
Exportpath= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH
Exportclasspath= $CLASSPATH:.: $JAVA _home/lib: $JAVA _home/jre/lib
Modify the system default Java to:
$ sudo update-alternatives--install/usr/bin/java java/usr/lib/jvm/jdk1.7.0_51/bin/java300
$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.7.0_51/bin/javac 300
$ sudo update-alternatives--config java
$ sudo update-alternatives--config javac
Check, enter:
$ java-version
Show:
Java Version "1.7.0_51"
Java (TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot (TM) Server VM (build 24.51-b03, Mixedmode)
----------------------------------------Gorgeous split---------------------------------------------------
2. Download Android Studio Package android-studio-bundle-133.970939-linux.tgz
Unzip:$ sudo tar zxvfandroid-studio-bundle-133.970939-linux.tgz
The folder name is Android-studio after decompression.
Move:$ sudo mv android-studio/opt/
Open folder:$ cd/opt/android-studio/bin/
Run:$ sudostudio.sh
Oh shit, the hint command doesn't exist, what's going on? Well, that's not the way to hit it, is it?
Run again:$ sudo./studio.sh
OK, it's open.

Ubuntu 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.