I'm trying to get screenshots from my device from Android Studio
but i get the message
"Unexpected error while obtaining screenshot from device: EOF"
I tried unplugging my device and restarting Android Studio with no success.
¿How to solve this problem without having to restart my pc?
解决方案
I can confirm this bug is still present in the latest adb.exe.
The only working solution at this moment is replacing adb.exe with the last working version. You can find it inside this zip:
Close Android Studio, then extract the file adb.exe (nothing else!) and override the faultly adb.exe at your platform-tools folder.
Default path for adb in Windows:
C:\Users\%USERNAME%\AppData\Local\Android\Sdk\platform-tools\
Finally, just open Android Studio again, and enjoy using the Screen Capture feature again.