I\'m getting this warning in my project gradle file:
Warning:(16, 5) \'buildTypes\' cannot be applied to \'(groovy.lang.Closure< com.android.build.
I used to have this warning, after I updated Android Studio.
When I went to Settings>>Build Tools>>Gradle I found Local Gradle path was invalid, since gradle version was updated as well from 2.6 to 2.8.
Fixed the new path and re-sync gradle removed the warning.
Another way is to use gradlewrapper
.