I am trying to get screenshots of my device from Android Studio on Windows.
I try to access the device and get the emulator image or physical device:
but I get the message:
"Unexpected error while obtaining screenshot from device: EOF"
Apparently it is the adb.exe executable that comes with the API 26 SDK since this problem did not occur previously.
I have tried unplugging my device and restarting Android Studio with no success.
I have seen this question on the english site,
Unexpected error while obtaining screenshot from device: EOF Android Studio 3.2.1
but : How to fix this problem without having to restart my pc or Android Studio?
This detail can be solved sometimes by rebooting but sometimes not since the process continues "alive".
At first I thought ADB was the problem but the ADB process was running.
One solution is to stop this process and start it again.
I look for the process in Task Manager to stop the process:
I can try again to get the Screenshot and the process, or look in the directory
/ platform-tools /
of my Android SDK folderadb.exe
to start the process again.