当前位置:   article > 正文

android echo,android - echo $ANDROID_HOME returns blank (mac os catalina) - Stack Overflow

export android_home=$home/library/android/sdk export path=$path:$android_hom

I've followed the instructions here to install android studio and the android sdk.

I've added the following lines to ~/.bash_profile, and I've run source ~/.bash_profile.

export ANDROID_HOME=$HOME/Library/Android/sdk

export PATH=$PATH:$ANDROID_HOME/emulator

export PATH=$PATH:$ANDROID_HOME/tools

export PATH=$PATH:$ANDROID_HOME/tools/bin

export PATH=$PATH:$ANDROID_HOME/platform-tools

The path is correct, I've checked it in Android Studio > Preferences > System Settings > Android SDK.

What is the problem? When I run source ~/.bash_profile, and then echo $ANDROID_HOME, I get some output. But if I close the terminal and restart it, and then I run echo $ANDROID_HOME, I get no output.

If found similar questions here and on other websites, but nothing seems to work. Editing the export lines, directly executing "export ..." in the terminal instead of bash_profile, ... . It all fails to work.

Anyone some tips to help me out?

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/160722
推荐阅读
相关标签
  

闽ICP备14008679号