I am trying to get tests ( junit and robolectric ) working in an Android project but am totally stuck. My main problem is that all testing I found with gradle somehow pull in the java plugin and then I get this error: The 'java' plugin has been applied, but it is not compatible with the Android plugins. The only way out I see at the moment is to split into test and app project - but I would like t