从设备获取屏幕截图时出现意外错误:EOF [英] Unexpected error while obtaining screenshot from device: EOF

查看:73
本文介绍了从设备获取屏幕截图时出现意外错误:EOF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Android Studio 中从我的一些项目(通过按相机图标)制作屏幕截图时,我收到以下消息:

When I try to make a screenshot in Android Studio from some of my projects (by pressing the camera icon), I get the following message:

"Unexpected error while obtaining screenshot from device: EOF"

如果我在打开一个完全不同的项目后单击相机图标,我可以对同一图像进行屏幕截图.是否有与项目相关的损坏文件需要删除和替换?

I can make a screenshot of the same image if I click the camera icon after opening a totally different project. Is there some corrupted file associated with the project that needs to be deleted and replaced?

推荐答案

我最近遇到了这个问题 - 之前一切正常.显然,它是在几周前我迁移到 SDK 26 时开始的.这为我修复了它:- 关闭工作室- 将 Android\sdk\platform-tools 中的 adb.exe 重命名为 .saf- 将旧的 adb.exe 从 Android\android-sdk\platform-tools 复制到 Android\sdk\platform-tools- 重启工作室

I ran into this problem recently - everything had been working fine previously. Apparently it started when I migrated to SDK 26 a few weeks ago. This fixed it for me: - shut down Studio - rename adb.exe in Android\sdk\platform-tools to .saf - copy the older adb.exe from Android\android-sdk\platform-tools to Android\sdk\platform-tools - restart Studio

所以基本上用旧版本替换 SDK 26 adb.exe...

So basically replace the SDK 26 adb.exe with an older version...

这篇关于从设备获取屏幕截图时出现意外错误:EOF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆