jaredsburrows / android-gif-search

Gif LazyVerticalGrid MVVM using Dagger 2 + Hilt with Retrofit 2, Moshi, Kotlin Coroutines, JUnit, Espresso and Robolectric tests!

Home Page:https://play.google.com/store/apps/details?id=com.burrowsapps.gif.search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix espresso tests on API 19 and lower

jaredsburrows opened this issue · comments

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

and from Travis:
screen shot 2016-10-02 at 2 38 17 pm