要修改的文件是~/bash_profile这个配置文件,内容如下:
# Setting PATH for Java JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home" CLASS_PATH="$JAVA_HOME/lib" # Setting PATH for Python 3.4 # The orginal version is saved in .bash_profile.pysave PYTHON_HOME="/Library/Frameworks/Python.framework/Versions/3.4/bin" # Setting PATH for Android ANDROID_HOME="~/Library/Android/sdk" PATH="/usr/local/bin:$JAVA_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PYTHON_HOME:$PATH" export PATH JAVA_HOME CLASS_PATH ANDROID_HOME
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/ccpw_cn/article/details/46882847