With the recent release of Android Studio 2.0, the new Android gradle 2.0.0 plugin has appeared. You can apply this in your top level buildscript block build.gradle by changing the version of the plugin to look like this:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0' } }
EDIT: Some projects previously managed by Android Studio 1.5 can cause such strange problems. To fix these problems, you may need to delete the .idea project .idea and re-import it into AS 2.0.
source share