解決Android studio螢幕截圖出錯: unexpected error while obtaining screenshot from device: EOF
android studio 3.2 很爛,目前要截圖,都沒辦法.一直出現此問題: unexpected error while obtaining screenshot from device: EOF 只好改用adb寫批次檔bat的方法: (建一個adb_capture.txt,貼上後改名成adb_capture.bat) 執行後,圖就產生在.bat同目錄旁. REM ==================== REM set varible _MyTime for filename FOR /F "tokens=1-4 delims=:." %%a IN ("%time%") DO ( SET _MyTime=%%a%%b%%c%%d ) REM adb root REM adb remount adb shell screencap -p /sdcard/Download/s1.png adb pull /sdcard/Download/s1.png adb shell rm /sdcard/Download/s1.png REM every file have different name by time rename s1.png %_MyTime%.png REM===============