简体   繁体   中英

studio.sh command not found - Ubuntu

I am trying to get Android Studio running. I have installed jdk and jre

sudo apt-get install default-jre
sudo apt-get install default-jdk

I have set up my .bashrc and /etc/environment file to

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH

but still nothing.

$JAVA_HOME returns correct value and so do java -version and whereis javac

What am I missing?

Following step worked for me

  1. cd to YOUR_DIR_WHERE_ANDROID_STUDIO_TILL_BIN_FOLDER
  2. then type command sh studio.sh or ./studio.sh

It worked for me -> Go to directory that has android studio bin.

-> Instead of using studio.sh use the command sh studio.sh 在此处输入图片说明

Try using sh ./studio.sh instead. Good luck.

如果您已使用 jetbrains Toolbox 安装了 android studio,则有路径位置

/home/username/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7678000/bin/

Typing command sh studio.sh in the directory android-studio/bin , I solved this issue, so you ought to try this one instead as well.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM