I've downloaded the tar file from Android Studio's official site. Now I want to install it using a terminal in the Ubuntu operating system. JDK is already installed and configured.
What are the steps to install Android Studio using a terminal?
I've downloaded the tar file from Android Studio's official site. Now I want to install it using a terminal in the Ubuntu operating system. JDK is already installed and configured.
What are the steps to install Android Studio using a terminal?
by terminal
sudo add-apt-repository ppa:maarten-fonville/android-studio
sudo apt update
sudo apt install android-studio -y
you can use local package installer like as Gdebi
I am answering my own question.After downloading android studio tar file from their official site, just go to downloaded directory extract the tar file and open terminal in that directory and run below command to move android studio to desired location.
sudo mv android-studio /opt
Now in home directory, open .bashrc file and add below lines on bottom of this file to set up environment variables.(if you dont see the .bashrc file in home directory then just check Show Hidded Files)
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$HOME/Android/Sdk/tools
export PATH=$PATH:$HOME/Android/Sdk/platform-tools
Android studio is installed, now you can use this command to launch it
/opt/android-studio/bin/studio.sh
Note: I have already installed and configured jdk. if you want to upgrade android studio to latest then first uninstall outdated android studio then perform all above instructions.
sudo snap install android-studio
? – Marco May 23 '23 at 08:51studio.sh
in thebin
directory, once you've opened the tarball (by issuingtar xzf <android-studio-tarball-file-name>
). If this is not sufficient, please provide further information of what exactly are you looking to install. – Janne Jokitalo May 23 '23 at 08:54