1、问题
每次启动 Appium,运行测试脚本时,
都会重新安装 io.appium.uiautomator2.server.apk 和 io.appium.uiautomator2.server.test.apk
2、解决
caps 增加设置:
skipServerInstallation:True
注意:
当设备上没有uiautomator2包时,不能设置skipServerInstallation:True
当设备上已安装uiautomator2包,可以设置skipServerInstallation:True -> 解决重复安装问题
3、官方文档说明:
skipServerInstallation
——————————————————————
Skip uiAutomator2 server installation and use uiAutomator2 server from the device.
Can be used to improve startup performance when an uiAutomator2 server in proper version is already installed on the device.
Defaults to false.