尝试获取模拟器屏幕或连接设备的屏幕截图时uiautomator查看器错误

时间:2017-09-07 05:11:01

标签: android testing ui-automation appium-android

任何人都可以为我提供更好的解决方案     提到了。我已经尝试了很多解决方案     一切     可能的网站。     Refer the image and please help me with the solution

2 个答案:

答案 0 :(得分:0)

检查您是否有与设备的活动Appium连接。 如果您的设备/模拟器具有活动的Appium连接,它将锁定ui-automator资源。所以你当时就无法拍摄快照。

答案 1 :(得分:0)

在截取屏幕截图之前,您是否可以确保从终端运行以下命令。

adb root
adb remount

这解决了我的问题。还要确保设备上尚未运行测试。