How to debug android studio gradle files and tasks? <p>I've leveraged TWiStErRob's solution <a href="http://stackoverflow.com/questions/21414399/android-gradle-dynamically-change-versionname-at-build-time">to auto-increment android versionNumber</a> and I have expanded on this to add more capability, however lately when I add the "apply from" statement in my build.gradle to include the auto-version.gradle file and let Gradle sync, my build.gradle gets inexplicably corrupted and loses all formatting using Android Studio 1.1.</p> <p>Is there any way to debug or step through gradle scripts in Android studio?</p>