You had errors compiling the samples until I append
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
to build.gradle (app).
It works find in windows cmd, but not in mintty. I change the following config.
git config --global core.askpass "git-gui--askpass"
This workaround makes git-gui prompt.