How to install Android Studio on Ubuntu?

前端 未结 17 1263
情深已故
情深已故 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 20:42

    Below are the steps to install Android Studio in Ubuntu system:

    1. Install JDK 6 or later

    First, install Oracle JDK 8 (although you could also choose OpenJDK but it has some UI/performance issues) using WebUpd8 PPA.

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

    To make sure, it’s installed successfully, open a terminal and type (you should get the version number of the jdk you’ve installed e.g javac 1.8.0_11)

    javac -version
    

    2. Download and install Android Studio

    Download the Android Studio package for Linux and extract it somewhere (e.g home directory). Then type :

    cd android-studio/bin
    ./studio.sh
    

    3. Install SDK Platforms

    You need to install some SDK before you jump into building android apps. Click on Configure -> SDK Manager to open Android SDK Manager. Select the latest API (to test against target build, e.g API 19 (Android 4.4.2)) and some packages in Extras (Android Support Library and Android Support Repository). Then install the selected packages.

提交回复
热议问题