In the construction of Appium environment, prompted Android_home environment is not configured, after a while fighting finally resolved, again record the solution.
1, installation Android-sdk-macosx
Download path: http://down.tech.sina.com.cn/page/45703.html, download version for Mac 24.4.1
2. After downloading, copy to your easy-to-remember path to store, unzip the folder, enter the tools file under Android-sdk-macosx, double click on Android to launch Android SDK manager. Select Android SDK tools and Android SDK Platform-tools to install.
Wait for the above selected item to download complete.
Note: Android SDK Manager requires Java support if Java is not installed prior to installing the Android SDK. When you double-click an android file, you are prompted to download and install Java, so you can install Java first before installing the Android SDK.
3. After the completion of the above, open the Mac terminal, enter the following content:
lucky:~ administrator$ Touch ~/. Bash_profile //Create . bash_profile file, if it has been created before, do not execute this bureau directly, open. Bash_ Profile file
Lucky:~ administrator$ Open ~/.bash_profile //Open. bash_profile file
Enter the following in the open file, key:
Export path= $PATH:/usr/local/bin export android_home=/users/administrator/android-sdk-macosx //Where you store the ANDROID-SDK-MACOSX
PATH=${path}: $ANDROID _home/tools: $ANDROID _home/platform_tools echo $ANDROID _home
Executes this statement. Save and execute the source ~/.bash_profile in the terminal to make the content added in the. bash_profile file effective.
3. Successful display after completion
Appium----The environment variable configuration for "Mac" Android_home is resolved