UBNUTN 16 installing Android Studio 2.0

Source: Internet
Author: User

Android Studio requires JDK dependencies, and a friend without a JDK first installed the JDK


Open Terminal, execute java-version

[Email protected]:~$ java-versionjava Version "1.8.0_91" Java (TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot (TM) 64-bit Server VM (build 25.91-b14, Mixed mode)

If there is a version of the JDK that has the JDK installed, skip this paragraph


The following JDK installation tutorials are from http://blog.csdn.net/yuxiayiji/article/details/37812785

First step: Add PPA repository to the system

    [Email protected]:/$ sudo add-apt-repository ppa:webupd8team/java  

Step Two: Update
[Email protected]:/$ sudo apt-get update  

step three: Download and install the JDK

[Email protected]:/$ sudo apt-get install Oracle-java7-installer  

here is the installation of JDK7, if you want to install JDK6 or JDK8, the above statement 7 to the corresponding number can be changed.

Fourth Step: Set as Default

[Email protected]:/$ sudo apt-get install Oracle-java7-set-default  
Similarly, you need to change the 7 to the corresponding 6 or 8

Fifth Step: View version

  1. [Email protected]:/$ java-version
  2. java version " 1.7. 0_55 "  
  3. Java (TM)  SE  Runtime Environment  (Build 1.7. 0_55-b13)  
  4. Java HotSpot (TM) Client VM (build 24.55-b03, mixed mode)


To modify a configuration file:

Gedit/etc/profile file end add:


#jdk

  1. Export Java_home=/usr/lib/jvm/java-7-oracle
  2. Export JRE_HOME=${JAVA_HOME}/JRE
  3. Export Classpath=.:${java_home}/lib:${jre_home}/lib
  4. Export Path=${java_home}/bin: $PATH
================== This step, the JDK installs successfully-then installs Android studio

    1. sudo apt-add-repository ppa:paolorotolo/android-studio
    2. sudo apt-get update
    3. sudo apt-get install android-studio
Wait a moment------

Check the installation directory later to see if the download is successful, of course, you can also go to view the Web download

Http://www.android-studio.org/index.php/download


Download the Linux version and unzip to the directory


, then enter the directory, if it is the official website of the CD to the location of your decompression, if it is under the command, please go

Cd/opt/android-studio/bincd

Extracted directory

[Email protected]:~/Download/android-studio/bin$


Anyway, it's right here in the bin.


Then, sudo./studio.sh


Then the familiar interface will see.


You may also encounter this problem here

Ubuntu running Android Studio error Unable to run Mksdcard SDK tool because the system is 64-bit and lacks lib

Reason: Lib is missing


Workaround:

sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6


OK, go to start the installation again


UBNUTN 16 installing Android Studio 2.0

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.