updated to work with Android Studio 0.4.0, which needs gradle plugin 0.7+ and gradle 1.9+