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:
https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.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.
I have found two solutions:
At the beginning I tought that the problem would be the ADB but the ADB was running.
I) Open task manager, end the process and tried again succesfully.
II)
I look for the process in the Task Manager to stop the process:
and then i searched into my Android SDK folder /platform-tools/
directory for the adb.exe
to start the process again.
now i can get the screenshots.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With