adb 'grep' 不是内部或外部命令,也不是可运行的程序或批处理文件 adb shell 之后的内容要用引号引起来,这样就不会报这个错误了。 eg: adb shell "dumpsys window|grep mCurrent"