I need to do some auto testing jobs to an Android application without its source code. I found both robotium and espresso can do this job, I decided to use espresso because its
I think you'd be better off not defining custom sourceSets. I just comment
sourceSets
from my build.gradle and its working fine.