首页 > 代码库 > Android測试环境变量配置表

Android測试环境变量配置表

要改动的文件是~/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
PYTHON_HOME="/Library/Frameworks/Python.framework/Versions/3.4/bin"

# Setting PATH for Android
ANDROID_HOME="~/Library/Android/sdk"

# Construct full path
PATH="/usr/local/bin:$JAVA_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PYTHON_HOME:$PATH"

# Export all path for base
export PATH JAVA_HOME CLASS_PATH ANDROID_HOME



亲測通过,可用。


Android測试环境变量配置表