【发布时间】:2021-05-30 18:57:10
【问题描述】:
此指令已列出:
[可选] 将“{installation home}/bin”添加到您的 PATH 环境变量中,以便您可以从任何目录启动 Android Studio。
所以我做了以下步骤:
第一次打开的.profile
gedit ~/.profile
编辑了这一行:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH:/home/username/android-studio/bin/"
fi
之后我在主目录中输入了这个:
studio.sh //didn't work
再次,
./studio.sh //still not working
请帮帮我。谢谢!
【问题讨论】:
-
你的用户名是
username,还是你为stackoverflow混淆了这个?/home/username/android-studio/bin/studio.sh有效吗? -
试试
export PATH=/home/<uername>/path/to/android-studio/bin:$PATH -
@Michiel 混淆:D
-
@GayanWeerakutti
# set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then # PATH="$HOME/bin:$PATH:/home/scarface/android-studio/bin/" export PATH="$HOME:/home/scarface/android-studio/bin:$PATH" fi我是新来的。请帮帮我!
标签: android linux android-studio ubuntu