我正在尝试使用Karumi插件https://github.com/Karumi/Shot/为Android设置基本的UI测试。但是在运行时./gradlew executeScreenshotTests -Precord
它总是返回以下错误:
execution failed for task ':app:downloadScreenshots'.
> java.io.IOException: Cannot run program "null": error=2, No such file or directory
我在Manifest.xml
文件中设置了读写权限,并且我有一个自定义MyTestRunner
扩展AndroidJUnitRunner
,用于estInstrumentationRunner
我{ {1}}档案
我按照他们的回购中的所有步骤。 有人知道可能导致这种情况的原因吗?