Migrate travis script to new Android Studio 0.4.0 and Gradle 1.9.+