Issue
I'm writing tests using okhttp3, mockwebserver, and retrofit2 in Android/Kotlin.
Everything I look up tells me to use the jakewharton idling resource, but it will not import into my project.
I got the info straight from Jake Wharton's github
- Is there anything I can do to fix this?
- Are there decent alternatives to adding this type of idle resource to my test suite?
Solution
It looks like the build.gradle dependencies no longer support androidTestCompile.
The dependency should switch from:
androidTestCompile 'com.jakewharton.espresso:okhttp3-idling-resource:1.0.0'
to
androidTestImplementation 'com.jakewharton.espresso:okhttp3-idling-resource:1.0.0'
Answered By - petestmart


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.