How to install Android Studio on Ubuntu?

前端 未结 17 1250
情深已故
情深已故 2020-11-30 20:38

I have to install Android Studio on Ubuntu and I have used this link to download Android Studio.

Is there any easy way to install Studio on Ubuntu?

相关标签:
17条回答
  • 2020-11-30 21:00

    Follow the steps via terminal:

    1. sudo add-apt-repository ppa:webupd8team/java
    2. sudo apt-get update
    3. sudo apt-get install oracle-java8-installer

    after then:

    1. sudo apt-get install oracle-java8-set-default

    then;

    1. Download Android Studio from "https://developer.android.com/studio/index.html", use All Android Studio Packages.
    2. Unzip the file.

    At last type via terminal :

    1. cd android-studio
    2. cd bin
    3. ./studio.sh

    Then follow the commands and you're ready to go.

    0 讨论(0)
  • 2020-11-30 21:01

    Hi If you want to install android studio on ubuntu you shoudl first have Java JDk on ubuntu. Installing Java SDK

    First you have to install Oracle on Java 7 (JDK and JRE)

    Download Java SDK 32 or 64 bit depending upon your version.

    java sdk on ubuntu

    Then extract the file in the /tmp folder.Al dialogue box will pop up, click on replace all.An error will also pop out click close.

    Go to tmp folder,a new folder name jdk and version must be created.right click on the folder and then click on rename and copy the name of the folder.

    Also read How to Install Genymotion on Ubuntu First write this command and click enter.

    install android sdk on ubuntu linux

    sudo su
    

    Then write this command and press enter

    if [ ! -d '/usr/lib/jvm' ]; then mkdir /usr/lib/jvm; fi
    

    Paste this command

    mv /tmp/jdk1.8* /usr/lib/jvm/  
    

    jdk1.8* = replace it with the name of the extracted folder in this example =jdk1.8.0_05

    and press enter

    sdk install linux
    

    java,javac,jar,javaws = we have to replace these

    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065
    update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065
    update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065
    update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8*/bin/javaws 1065
    update-alternatives --config java
    java -version
    

    This was taken from http://emulatorforpc.com/best-android-emulator-ubuntu/

    0 讨论(0)
  • 2020-11-30 21:02

    In order to install Android Studio on Ubuntu Studio 14.04 and derivatives, do the following:

    Step 1: Open a terminal using the Dash or pressing Ctrl + Alt + T keys.

    Step 2: If you have not, add that repository with the following command:

    sudo add-apt-repository ppa:paolorotolo/android-studio
    

    Step 3: Update the APT with the command:

    sudo apt-get update
    

    Step 4: Now install the program with the command:

    sudo apt-get install android-studio
    

    Step 5: Once installed, run the program by typing in Dash:

    studio
    
    0 讨论(0)
  • 2020-11-30 21:03

    Here's how I installed android studio on xubuntu.

    1. Install JDK:

    Go through following commands to install jdk

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    sudo apt-get install oracle-java7-set-default
    

    If you want to install other version of jdk than replace your version number with 7 in last two commands.

    2. Download the latest android studio from official site: https://developer.android.com/studio/index.html

    It is better to use latest version of android studio because I tried to install version 1.5.1 and it was not working. Then I installed version 2.1.1 and it run perfectly.

    1. Extract downloaded android studio file in whichever folder you want. Now go to extracted android studio-->bin directory and open terminal here. Now run following:

      ./studio.sh

    And that's it. If you are facing any problem than comment below.

    0 讨论(0)
  • 2020-11-30 21:06

    You could always follow the official guide on how to install Android Studio on Linux. There's even a video you can watch!

    https://developer.android.com/studio/install.html

    Remember to select Linux in the drop-down box.

    To summarise the steps: download Android Studio and extract it and execute studio.sh to run it. If you're running 64-bit Ubuntu, you will need to run:

    sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
    
    0 讨论(0)
提交回复
热议问题