解决方法:修改配置,将 automationName 指定为 UiAutomator2
原配置:
{ "platformName": "android", "deviceName": "b75d23ef", "appPackage": "com.tencent.mm", "appActivity": ".ui.LauncherUI", "automationName": "UiAutomator1", "noReset": "true", "fullReset": "false" }
修改后的配置:
{ "platformName": "android", "deviceName": "b75d23ef", "appPackage": "com.tencent.mm", "appActivity": ".ui.LauncherUI", "automationName": "UiAutomator2", "noReset": "true", "fullReset": "false" }