Download the Android SDK first.
Switch to User home directory
CD ~/
Create configuration file touch. bash_profile
Open the configuration file. bash_profile
Add Content:
Export path= $PATH:/users/zhangminjie/documents/sdk/platform-tools:/users/zhangminjie/documents/sdk/tools
Export Android_home= "/USERS/ZHANGMINJIE/DOCUMENTS/SDK"
Export java_home=$ (/usr/libexec/java_home)
Update source. bash_profile
After execution
Appium-doctor
Running IOS Checks
? Xcode is installed At/library/developer/commandlinetools
? Xcode Command line Tools is installed.
? Devtoolssecurity is enabled.
? The Authorization DB is set up properly.
? Node Binary found At/usr/local/bin/node
? IOS Checks were successful.
Running Android Checks
? Android_home is set to "/USERS/ZHANGMINJIE/DOCUMENTS/SDK"
? Java_home is set to "/library/java/javavirtualmachines/jdk1.8.0_11.jdk/contents/home."
? ADB exists at/users/zhangminjie/documents/sdk/platform-tools/adb
? Android exists at/users/zhangminjie/documents/sdk/tools/android
? Emulator exists At/users/zhangminjie/documents/sdk/tools/emulator
? Android Checks were successful.
? All Checks were successful
Operating environment is built successfully
Mac installs Android SDK to launch appium Android automated test