4

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

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
| improve this answer | |
  • can you please give me the commands.i am new on ubuntu – Saad Mirza Oct 30 '16 at 16:42
  • if your extracted zip file path is PATH_TO_ZIP_FILE, then type PATH_TO_ZIP_FILE/android-studio/bin/studio.sh . For example if the android-studio folder is in downloads directory type $HOME/Downloads/android-studio/bin/studio.sh – Kevin Selva Prasanna Oct 30 '16 at 16:50
2

On ubuntu it is /opt/android-studio/bin/studio.sh

You can open terminal by CTRL+ALT+T

| improve this answer | |
2

just run this command into your terminal

cd /usr/local/android-studio/bin

/usr/local/android-studio/bin$ ./studio.sh

| improve this answer | |
0

If 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.

| improve this answer | |
0

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

| improve this answer | |
0

I tried to reduce job by setting an environment variable

echo "export ANDROID=/usr/local/android-studio/bin/studio.sh" >> ~/.bashrc
source .bashrc

Whenever want to open Android Studio just fire command

$ANDROID

I hope this will reduce your work.

Good luck..!

| improve this answer | |
0

Launching Android Studio using Terminal with SUDO privileges

  1. Open terminal (ctrl + alt + t)
  2. Type sudo su command then enters your password.
  3. Type cd /opt/android-studio/bin
  4. Run Android studio using sh ./studio.sh
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.