gpt4 book ai didi

android - 如何从 Ubuntu 中的任何目录打开 Android Studio?

转载 作者:行者123 更新时间:2023-12-04 19:29:46 24 4
gpt4 key购买 nike

列出了该指令:
[可选] 将“{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
请帮帮我。谢谢!

最佳答案

这是人们面临的一个非常普遍的问题。 只需编辑您的 .bashrc.profile不管用。 您要么必须重新启动,要么重新获取 .bashrc 的资源。或 .profile文件。 (在您的情况下,.profile 文件)。为此,请运行以下命令:-

source ~/.profile
所以编辑你的 .profile像您对问题所做的那样归档,然后执行此操作。之后,您应该可以通过 studio.sh 在任何地方启动。

关于android - 如何从 Ubuntu 中的任何目录打开 Android Studio?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67764793/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com