Mac安装Appium的Android环境

1.下载android sdk

 
2.解压,配置环境变量
 

 

ANDROID_HOME=/Users/wp/dev/android-sdk-macosx

JAVA_HOME=/Library/'Internet Plug-Ins'/JavaAppletPlugin.plugin/Contents/Home

 

PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platforms-tools:$JAVA_HOME 

 

export JAVA_HOME

export ANDROID_HOME

  

 
 
3.下载sdk的platform-tools
 
> android
 
Android SDK Managee > Manager 
配置
HTTP Proxy Server: mirrors.neusoft.edu.cn
HTTP Proxy Port: 80 
 
下载Android SDK Platform-tools
 
4.检查环境
>  /usr/local/bin/appium-doctor 
 
输出以下内容,表示环境监测全部通过

 

Running iOS Checks

✔ Xcode is installed at /Applications/Xcode-beta.app/Contents/Developer

✔ Xcode Command Line Tools are 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/a58/dev/android-sdk-macosx"

✔ JAVA_HOME is set to "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home."

✔ ADB exists at /Users/a58/dev/android-sdk-macosx/platform-tools/adb

✔ Android exists at /Users/a58/dev/android-sdk-macosx/tools/android

✔ Emulator exists at /Users/a58/dev/android-sdk-macosx/tools/emulator

✔ Android Checks were successful.

 

✔ All Checks were successful

 
 
5.Android SDK Managee中选择安装一个版本的模拟器
 
247419.png
 
6.配置Android模拟器
 
Android SDK Manager -> [Tools] -> [Manage AVDs]
[Create]
 
523250.png
 
7.启动模拟器
 
876358.png
 
8.Android SDK Managee中安装Android SDK BuildTools
 
9.运行Appium脚本
>   python android_simple.py 
736120.png
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值