赞
踩
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?
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。