Android Studio错误尝试获取屏幕截图:“从设备获取屏幕截图时出现意外错误:EOF"; [英] Android Studio errror tryin to get an screenshot : "Unexpected error while obtaining screenshot from device: EOF"

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

问题描述

我正在尝试从Android Studio的设备中获取屏幕截图

I'm trying to get screenshots from my device from Android Studio

但我收到消息

从设备获取截图时出现意外错误:EOF"

"Unexpected error while obtaining screenshot from device: EOF"

我尝试拔下设备并重新启动Android Studio,但没有成功.

I tried unplugging my device and restarting Android Studio with no success.

¿无需重新启动计算机即可解决此问题?

¿How to solve this problem without having to restart my pc?

推荐答案

我可以确认此错误仍存在于最新的adb.exe中.

I can confirm this bug is still present in the latest adb.exe.

目前唯一可行的解​​决方案是将adb.exe替换为最新的工作版本.您可以在此zip内找到它:

The only working solution at this moment is replacing adb.exe with the last working version. You can find it inside this zip:

https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip

关闭Android Studio,然后提取文件 adb.exe (仅此而已!),并在您的platform-tools文件夹中覆盖出现故障的adb.exe.

Close Android Studio, then extract the file adb.exe (nothing else!) and override the faultly adb.exe at your platform-tools folder.

Windows中adb的默认路径:

Default path for adb in Windows:

C:\ Users \%USERNAME%\ AppData \ Local \ Android \ Sdk \ platform-tools \

C:\Users\%USERNAME%\AppData\Local\Android\Sdk\platform-tools\

最后,只需再次打开Android Studio,然后再次使用屏幕捕获功能即可.

Finally, just open Android Studio again, and enjoy using the Screen Capture feature again.

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

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