共有三種方法,推薦使用方法三:
1. 使用1.8版本的appium desktop
好處是方便,壞處是不能跟上潮流,一直用之前的版本。真的感覺不開心。
2. 替換
應該是官方的appium-uiautomator2-server-debug-androidTest.apk有問題,換個版本替換下這個apk,再啓動就可以了。
相關參考文檔:https://ceshiren.com/t/topic/1940/22
好處是終於可以用新版本了,壞處是下個包替換,真的不方便。要是更新啥的,很麻煩。
3. 使用 appium desktop的custom server
也就是說,appium desktop的時候,不使用它的appium server這樣就可以了。
1、自己本地啓動一個appium服務
2、在start時,改一個port
3、在start session時,選擇custom server即可。
推薦使用:
因爲本來就要裝appium單獨的server的,順便就用起來啦。還可以隨意更新,用新版本。更新也方便。
相關的使用方法英文文檔地址:
https://github.com/appium/appium-desktop#connect-to-local-appium-server