Appium 常见问题

pip install 超时

解决方法:pip --default-timeout=1000 install -U selenium

执行adb devices报错 * daemon not running. starting it now on port 5037 *

 解决方案:

1)执行netstat -ano | findstr "5037",查看5037端口时候被占用

2)若被占用,执行taskkill -f -pid **** 杀掉占用的进程

3)若端口未占用,需要检查系统配置文件:将C:WINDOWSSystem32下的adb.exe、AdbWinApi.dll文件复制到C:WindowsSysWOW64中。

执行aapt提示“aapt不是内部或外部命令,也不是可运行的程序”

解决方法:sdkuild-tools目录下的任意文件夹下的aapt.exe复制到sdkplatform-tools中

执行yarn -v提示“yarn : 无法加载文件 ***,因为在此系统上禁止运行脚本”

 

原因:运行的脚本为未签名脚本或来自其他用户的签名脚本

解决方法:

1)搜索powershell,右键以管理员身份运行

2)执行:set-ExecutionPolicy RemoteSigned,将计算机上的 执行策略更改为 RemoteSigned

3)查看执行策略:get-ExecutionPolicy

原文地址:https://www.cnblogs.com/scholars-xian/p/11777300.html