我使用Espresso Test Recorder创建了Espresso测试,但是当我尝试运行测试时,我收到错误或没有任何反应。
通常我会收到此错误:
Error:FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebugAndroidTest'.
> java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
当我更改build.gradle
时multiDexEnabled true
到
multiDexEnabled false
然后我似乎可以运行测试,但不能自己构建应用程序。无论如何,当我运行测试时,仍然没有任何反应。