title: Error:(10, 0) gradle method not found classpath()
body: <p>Hello i'm newbie with Android studio , i imported facebook as, and first i got this error  <code>Error:(111)  Cannot call getBootClasspath() before setTargetInfo() is called.</code> and i followed the right answer  <a href="https://stackoverflow.com/questions/29187973/android-studio-gradle-build-error-while-adding-facebook-sdk">here</a>. i.e i changed my depencies from </p>
  
  <pre><code>dependencies {
      compile 'com.android.support:support-v4:[21,22)'
      compile 'com.parse.bolts:bolts-android:1.1.4'
  }
  </code></pre>
  
  <p>to </p>
  
  <pre><code> dependencies {
          classpath 'com.android.tools.build:gradle:1.1.3'
      }
  </code></pre>
  
  <p>and now i'm getting this error </p>
  
  <pre><code>   Error:(10, 0) Gradle DSL method not found: 'classpath()'
  Possible causes:The project 'FiberTeccpcp' may be using a version of Gradle that does not contain the method.
          Gradle settings
  The build file may be missing a Gradle plugin.
          Apply Gradle plugin
  </code></pre>
  
  <p><strong>finally this is my build.gradle file</strong></p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  repositories {
    mavenCentral()
  }
  
  project.group = 'com.facebook.android'
  
  dependencies {
      classpath 'com.android.tools.build:gradle:1.1.3'
  }
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.2"
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 21
      }
  
      lintOptions {
          abortOnError false
      }
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              res.srcDirs = ['res']
          }
      }
  }
  
  apply plugin: 'maven'
  apply plugin: 'signing'
  ......
  </code></pre>
  
  <p>How can i correct this?</p>