"how to install android sdk on ubuntu?" Code Answer


option 1:

sudo apt update && sudo apt install android-sdk

the location of android sdk on linux can be any of the following:

  • /home/accountname/android/sdk

  • /usr/lib/android-sdk

  • /library/android/sdk/

  • /users/[user]/library/android/sdk

option 2:

  • download the android studio.

  • extract downloaded .zip file.

    the extracted folder name will read somewhat like android-studio

to keep navigation easy, move this folder to home directory.

  • after moving, copy the moved folder by right clicking it. this action will place folder's location to clipboard.

  • use ctrl alt t to open a terminal

  • go to this folder's directory using cd /home/(user name)/android-studio/bin/

  • type this command to make studio.sh executable: chmod +x studio.sh

  • type ./studio.sh

a pop up will be shown asking for installation settings. in my particular case, it is a fresh install so i'll go with selecting i do not have a previous version of studio or i do not want to import my settings.

if you choose to import settings anyway, you may need to close any old project which is opened in order to get a working android sdk.

from now onwards, setup wizard will guide you.

android studio can work with both open jdk and oracle's jdk (recommended). incase, open jdk is installed the wizard will recommend installing oracle java jdk because some ui and performance issues are reported while using openjdk.

the downside with oracle's jdk is that it won't update with the rest of your system like openjdk will.

the wizard may also prompt about the input problems with idea .

select install type

verify installation settings

an emulator can also be configured as needed.

the wizard will start downloading the necessary sdk tools

the wizard may also show an error about linux 32 bit libraries, which can be solved by using the below command:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

after this, all the required components will be downloaded and installed automatically.

after everything is upto the mark, just click finish

to make a desktop icon, go to 'configure' and then click 'create desktop entry'


By clearlight on October 18 2022

Answers related to “how to install android sdk on ubuntu?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.