Building a sub-project of a Gradle build, where another sub-project is Android

I believe this is effectively the same question being asked here: