[英]Android Studio Emulator device screen capture screen not available
Using Android Studio in Windows. 在Windows中使用Android Studio。 Trying to get the screenshot.
试图获取截图。
When the Device Screen Capture window appears, "save" button is disabled and shows Screen not available. 出现设备屏幕捕获窗口时,“保存”按钮被禁用,并显示屏幕不可用。
在Android虚拟设备管理器(AVD)中尝试取消选中虚拟设备仿真性能设置:使用主机GPU。
An alternative is to use adb screenrecord 另一种方法是使用adb screenrecord
https://developer.android.com/studio/command-line/shell.html#screenrecord https://developer.android.com/studio/command-line/shell.html#screenrecord
$ adb shell screenrecord /sdcard/demo.mp4
(press Ctrl-C to stop)
$ adb pull /sdcard/demo.mp4
$ adb shell rm /sdcard/demo.mp4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.