未能将Android Studio路径添加到环境变量中。 (ubuntu 14.04)

时间:2016-04-28 16:17:56

标签: android-studio environment-variables ubuntu-14.04

我已经完成了以下步骤 1. gedit ~/.bashrc 2.添加

# Add the Android Studio /bin directory to PATH
export PATH=$PATH:~/opt/android-studio/bin

3。source ~/.bashrc 重新启动笔记本电脑并尝试使用

打开studio.sh
user@user:~$ sudo ./ studio.sh
[sudo] password for user: 
sudo: ./: command not found
user@user:~$ ./studio.sh
bash: ./studio.sh: No such file or directory
user@user:~$ studio.sh
studio.sh: command not found
user@user:~$ sh studio.sh
sh: 0: Can't open studio.sh

请告诉我正确的方法。

1 个答案:

答案 0 :(得分:0)

您可能想尝试mpirun main_command & sleep 1m && second_command ,然后使用命令ln -sf /opt/android-studio/bin/studio.sh ~/.local/bin/android-studio启动?