I'm trying to get screenshots of my device from Android Studio on Windows.
I try to access the device and get the image of the emulator or physical device:
but I receive the message:
"Unexpected error while obtaining screenshot from device: EOF"
Apparently it is the executable adb.exe that comes with the SDK API 26 since this problem did not occur before.
I tried to disconnect my device and restart Android Studio without success.
How to solve this problem without having to restart my pc?