Fix espresso tests on API 19 and lower
jaredsburrows opened this issue · comments
Jared Burrows commented
Tests on API19(AVD) - 4.4.2 failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'
com.android.builder.testing.ConnectedDevice > No tests found.[API19(AVD) - 4.4.2] FAILED
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
:connectedDebugAndroidTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':connectedDebugAndroidTest'.
> There were failing tests. See the report at: file:///<>/android-gif-example/build/reports/androidTests/connected/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3 mins 39.422 secs