我是MAC OS X约塞米蒂我已经做了所有的出口教程设置android_home但非它的工作对我来说
I am MAC OS X Yosemite I have done all the export tutorial to set the android_home but non of it working for me
确保ANDROID_HOME出口,并添加SDK工具目录路径应该是绰绰有余,让你去。的
# First, we make sure we have a newline at the end of the .bash_profile
echo >> /Users/abdi/.bash_profile
# We set the ANDROID_HOME value in the .bash_profile
echo "export ANDROID_HOME=/Users/abdi/adt/sdk" >> /Users/abdi/.bash_profile
# We alter the PATH value a bit as well
echo "export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" >> /Users/abdi/.bash_profile
# We then tell the terminal to update all the things
. /Users/abdi/.bash_profile
您也可以使用开-e /Users/abdi/.bash_profile
命令打开文本编辑.bash_profile文件。如果您收到有关丢失文件的一些错误,请尝试运行触摸/Users/abdi/.bash_profile
并重新打开命令。在打开的文件,在末尾加上下面几行。
You can also open the .bash_profile file in TextEdit using the open -e /Users/abdi/.bash_profile
command. If you get some errors about missing files, try running touch /Users/abdi/.bash_profile
and retry the open command. In the file that opens, add the following lines at the end.
export ANDROID_HOME=/Users/abdi/adt/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
运行。 /Users/abdi/.bash_profile
作为终端版本后,应该让您完全建立起来。
Running . /Users/abdi/.bash_profile
as in the terminal version after that should get you fully set up.