简体   繁体   English

UiAutomatorViewer 根本不捕获屏幕截图

[英]UiAutomatorViewer Not capturing screenshot at all

I have come from this answer which suggests the usage of Ui Automator , which requires the tool UiAutomatorViewer to be used.我来自this answer,它建议使用Ui Automator ,这需要使用工具UiAutomatorViewer

The tool itself can be found at: <android-sdk>/tools/bin该工具本身可以在以下位置找到: <android-sdk>/tools/bin

When I open it I get:当我打开它时,我得到: 在此处输入图像描述

And when I try a screen shot, I get:当我尝试截屏时,我得到:

在此处输入图像描述

How do I deal with this error?我该如何处理这个错误?

This issue is seen when your device is currently busy with some kind of debug mode from IDE or another screen sharing app like vysor is already active当您的设备当前正忙于 IDE 或其他屏幕共享应用程序(如 vysor)已处于活动状态时,会出现此问题

You can also try to reboot the device and try UiAutomatorViewer again without opening anyother IDE/app您也可以尝试重新启动设备并再次尝试 UiAutomatorViewer,而无需打开任何其他 IDE/应用程序

Okay so actually my PC didn't have the read permission for smartphones (office).好的,实际上我的电脑没有智能手机(办公室)的读取权限。 After getting the permission the tool worked flawlessly.获得许可后,该工具完美运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM