I like the idea of pushing as much as possible down into module build.gradle files, but moving everything up into the top level build.gradle made it easier to figure out how to make Android Studio happy.