简体   繁体   English

Android Studio Emulator设备屏幕截图屏幕不可用

[英]Android Studio Emulator device screen capture screen not available

Using Android Studio in Windows. 在Windows中使用Android Studio。 Trying to get the screenshot. 试图获取截图。

  1. Run my App in Debug Mode. 在调试模式下运行我的应用程序
  2. Open the Android DDMS tool window. 打开Android DDMS工具窗口。
  3. Click Screen Capture on the left side of the Android DDMS tool window. 单击Android DDMS工具窗口左侧的“屏幕捕获”。

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.

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