Using Android Studio 2.0 over El Capitan like the next screenshot said:
I found a bug that I can't report:
After add a Fragment to my project, AS screw up my module build.gradle file. I mean, before add the fragment they file looks like this screenshot:
but after add the Fragment AS screw it in this way:
The way to reproduce it is like I'm showing in next screenshot:
I can fix it manually, but its so annoying doing it every single time that I add a Fragment. Is there anyway to fix it?
I'm on Mac OX with El Capitan.
put your constraint-layout on the bottom, it will not scramble again (i don't know why, but it works)
It is a still open bug, you can monitor it's state here
The bug is due to the comments in the dependencies section, a temporal fix could be to remove them from there. I placed the comments there for a reason too :)
just reformat your project level gradle . It will work fine. These compile statement got dis-formatted. Just hit Enter before every "compile" it should be like:
Delete all comments in your gradle file