为 android sdk 设置环境变量时权限被拒绝
Permission denied when setting up environment variables for android sdk
我一直在关注 these directions to setup android development on a mac. I put the android sdk folder in my desktop folder so my path should be "Desktop/android-sdk-macosx", I followed the steps in the terminal but it keeps on telling me permission denied as seen here。
我也进入了我的主目录并执行了 COMMAND+SHIFT+。显示隐藏文件以便添加到我的主文件夹中的 .bash_profile 文件,但在那里找不到 .bash_profile。
以下是我的有效设置的一些详细信息。
注意我把我的 sdk 文件夹放在家里,例如~
.
首先,打开终端并输入以下命令:
cd ~
ls -a
这是我的会话,显示的是:
如果您没有 .bash_profile,那么制作一个:
touch .bash_profile
然后,输入命令:
emacs .bash_profile
然后,设置你的 ANDROID_HOME 和 PATH,这是我的样子:
请注意,我手动下载了 SDK,并且我为 NDK 文件夹使用了 homebrew,这就是它们设置不同的原因。
我一直在关注 these directions to setup android development on a mac. I put the android sdk folder in my desktop folder so my path should be "Desktop/android-sdk-macosx", I followed the steps in the terminal but it keeps on telling me permission denied as seen here。
我也进入了我的主目录并执行了 COMMAND+SHIFT+。显示隐藏文件以便添加到我的主文件夹中的 .bash_profile 文件,但在那里找不到 .bash_profile。
以下是我的有效设置的一些详细信息。
注意我把我的 sdk 文件夹放在家里,例如~
.
首先,打开终端并输入以下命令:
cd ~
ls -a
这是我的会话,显示的是:
如果您没有 .bash_profile,那么制作一个:
touch .bash_profile
然后,输入命令:
emacs .bash_profile
然后,设置你的 ANDROID_HOME 和 PATH,这是我的样子:
请注意,我手动下载了 SDK,并且我为 NDK 文件夹使用了 homebrew,这就是它们设置不同的原因。