EDIT: Updated description and error message and added some images. Still have this problem.
I have a strange error that occur many times when running espresso tests. Af
One possible cause of this is the tests are running in parallel. Use --no-parallel
.
Example --> gradlew connectedLiveDebugAndroidTest --no-parallel
It this happens only when running all of them from the console or sequentially, but doesn't happen running them individually then chances are they are running on parallel o the same device. Two different Espresso tests running on the same device at the same time make them flaky and prone to fail.