FAILURE: Build failed with an exception

Dear Concern, I am facing “FAILURE: Build failed with an exception.” while building project and task with dependencies. The details message with error is given below:

  • Where: Build file ‘/opt/gradle-1.10/build.gradle’ line: 10

  • What went wrong: A problem occurred evaluating root project ‘gradle-1.10’. Cause: org/gradle/internal/reflect/Instantiator Cause: org.gradle.internal.reflect.Instantiator

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.814 secs

“build.gradle” -----------------

buildscript {

repositories {

mavenCentral()

}

dependencies {

classpath ‘com.android.tools.build:gradle:0.9.2’

} }

apply plugin: ‘android’

android {

compileSdkVersion 19

buildToolsVersion “19.0.3”

sourceSets {

main {

manifest.srcFile ‘AndroidManifest.xml’

java.srcDirs = [‘src’]

res.srcDirs = [‘res’]

}

} }

Please help to sort out this error and will have a successful build.