title: Automatic versioning of Android build using git describe with Gradle
body: <p>I have searched extensively, but likely due to the newness of Android Studio and Gradle. I haven't found any description of how to do this.  I want to do basically exactly what is described in <a href="https://stackoverflow.com/questions/14895123/auto-version-numbering-your-android-app-using-git-and-eclipse-on-linux">this post</a>, but with Android Studio, Gradle and Windows rather than Eclipse and Linux.</p>