I've just installed Android Studio. After installing, I forgot to add in the launcher. I restarted the system.
Now I want to launch Android Studio from Terminal. I've tried everything but didn't work.
7 Answers
cd into the directory where you unzipped the android studio installer zip file. The folder is named android-studio. It could be in your ~/Downloads folder if you downloaded it from the internet. Now cd into the bin folder and run the studio.sh file
./studio.sh 2 On ubuntu it is /opt/android-studio/bin/studio.sh
You can open terminal by CTRL+ALT+T
just run this command into your terminal
cd /usr/local/android-studio/bin
/usr/local/android-studio/bin$ ./studio.sh
0If you want to use terminal to start a program then you should be knowing the command to be written in terminal. To know the command in Kubuntu I use the Kmenuedit. In kmenuedit find that program and that program's details there will be a field named command there you will find text to be written in terminal. Another option is to check system monitor program that also has a column named command. So you can check running instances of programs and command.
Go to android studio folder in your system then 1. Press right click of mouse and open terminal 2. wright ./studio.sh and press enter 3. it would open your android emulator in ubuntu
I tried to reduce job by setting an environment variable
echo "export ANDROID=/usr/local/android-studio/bin/studio.sh" >> ~/.bashrc
source .bashrcWhenever want to open Android Studio just fire command
$ANDROIDI hope this will reduce your work.
Good luck..!
Launching Android Studio using Terminal with SUDO privileges
- Open terminal
(ctrl + alt + t) - Type
sudo sucommand then enters your password. - Type
cd /opt/android-studio/bin - Run Android studio using
sh ./studio.sh