多分、Android SDK Build-Tools を r29 にアップデイトしたことが原因で、スクリーンショットを撮る際、次のエラーになるようになった。
Unexpected error while obtaining screenshot from device: EOF
次の対策で、この問題が解決した。
1. Android Studio を終了
2. 次のファイルをダウンロードする。
https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip
3. adb.exe を入れ替える。
Android\sdk\platform-tools にある adb.exe の更新日時は 2019/03/06 だった。
これをダウンロードした adb.exe と入れ替える。
adb.exe の更新日時は 2018/05/22 になる。
参考サイト:
stackoverflow.com