Using Android Studio 2.0 over El Capitan, like the following screenshot:

I found an error that I can not report: After adding a fragment to my AS project, my build.gradle file will be deleted. I mean, before adding the fragment, they look like this screenshot:

but after adding Fragment AS, twist it like this:

A way to reproduce this, as shown in the following screenshot:

I can fix it manually, but it is so annoying doing it every time I add a fragment. Is there any way to fix this?
I am on a Mac OX with El Capitan.
android android-studio android-gradle build.gradle osx-elcapitan
MiguelHincapieC Apr 25 '16 at 15:14 2016-04-25 15:14
source share