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
I had the same problem. This happen when the screen on device is off. Turn screen on should fix the problem.