Example of a Gradle Android build with unit tests on a separate project.

That should save a lot of headaches in applying other plugins that rely on the java plugin