Appium----The environment variable configuration of "resolved" Mac android_home

Source: Internet
Author: User
Tags appium android sdk manager

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.