问题描述
我正在使用命令:
adb exec-out screencap -p > imagePath.png
它早先可以运行,但是现在有时会创建大小为0 KB的损坏的图像。没有发生任何环境变化,所以我不知道这里有什么自然力量在起作用。
还有其他人也遇到过同样的问题吗?
解决方法
请尝试:
adb exec-out "screencap -p && sleep .1" > imagePath.png
我正在使用命令:
adb exec-out screencap -p > imagePath.png
它早先可以运行,但是现在有时会创建大小为0 KB的损坏的图像。没有发生任何环境变化,所以我不知道这里有什么自然力量在起作用。
还有其他人也遇到过同样的问题吗?
请尝试:
adb exec-out "screencap -p && sleep .1" > imagePath.png