appium-python|adb 和Android SDK在Mac下的环境整理

1、使用Android studio 下载安装SDK 需要配置环境变量
open .bash_profile
【appium-python|adb 和Android SDK在Mac下的环境整理】export ANDROID_HOME=/Users/用户名/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

2、只下载SDK
按照上面的设置环境变量
3、利用brew 下载adb

brew cask install android-platform-tools




Mac系统下Java环境变量
PATH后面加${PATH}
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home


export CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar


export PATH=${PATH}:$JAVA_HOME/bin:$PATH


export ANDROID_HOME=/Users/xiaoyezi/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export APPIUM_HOME=/Applications/Appium.app/Contents/Resources


export JAVA_HOME
export PATH
export CLASSPATH


    推荐阅读