How to install Android Studio on Ubuntu?

前端 未结 17 1292
情深已故
情深已故 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: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/

提交回复
热议问题