I have already created one project and gradle sync worked successfully.
When I try to create another project it fails and gives the error message that
THis fixed it for me after wasting lot of time trying various solutions: Check the dependencies -> classpath in build.gradle file of project
dependencies {
classpath 'com.android.tools.build:gradle:2.10'
}
Changed this to classpath 'com.android.tools.build:gradle:2.0.0-rc1 in my case to fix the issue . To know the correct version to be used, made a new project and checked the build.gradle file . Hope this helps.