If you want to use AndroidJUnit4 you have to create a custom test runner where the screenshot stuff is initialized. As described here: ...
Lee mas