mac安装appium流程及踩过的坑
2022-05-17 本文已影响0人
测试探索
一、下载appium-desktop-1.13.o版本
二、下载adb(前面有文章,brew下载方式,该方式在启动appium-desktop上有坑)
三、下载aapt(前面有文章讲解)
四、踩过的坑
报错:Error killing ADB server, going to see if it's online anyway
解决方案:配置appium-desktop下的edit configuration

该解决方案思考
查看appium-desktop日志后,发现日志显示下,在不断的kill掉appium,restart appium,网上有资源说是两个adb同时启动,关闭一个即可,但是如何确定两个adb同时启动呢,一般会先找/usr/local/bin下的adb,但是无论如何操作appium-desktop日志依然报错,因为我是通过brew方式下载,所以通过以下方式可以找到brew下的adb安装目录,在appium-desktop里配置里填写brew下载的adb路径即可正常运行。

第一步:
brew list

第二步:
使用命令,最下行找到adb,复制该adb所在路径到appium-desktop的配置页面,重启appium-desktop,运行代码即可
brew list android-platform-tools
