Make project work with Android Studio 1.0

Tested:
  Manually (Android Studio 1.0 on a mac), `./gradlew clean test`