title: Cannot call getBootClasspath() before setTargetInfo() is called
body: <p>I am new in android studio, when i sync android application i got error.</p>
  
  <pre><code>C:\Users\Mansukh\Desktop\layout\MaterialDesignLibrary-master\MaterialDesign\build.gradle
  
  Error:(97, 0) Cannot call getBootClasspath() before setTargetInfo() is called.
  </code></pre>
  
  <p>Please anyone tell me what is error mean and what are the solution for this error. i try to find out problem on internet but i unable to got particular solution.</p>
  
  <p>Here is my <strong>gradle.build</strong> file.</p>
  
  <pre><code>apply plugin: 'com.android.library'
  apply plugin: 'com.github.dcendents.android-maven'
  apply plugin: 'com.jfrog.bintray'
  
  android {
      compileSdkVersion 19
      buildToolsVersion '20.0.0'
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
  
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
  
              renderscript.srcDirs = ['src']
  
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
          androidTest.setRoot('tests')
      }
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 21
          versionCode 6
          versionName '1.4'
      }
  }
  
  ext.siteUrl = 'https://github.com/navasmdc/MaterialDesignLibrary'
  ext.issueUrl = 'https://github.com/navasmdc/MaterialDesignLibrary/issues'
  ext.gitUrl = 'https://github.com/navasmdc/MaterialDesignLibrary.git'
  
  bintray {
      user = hasProperty('BINTRAY_USER') ? BINTRAY_USER : "navasmdc"
      key = hasProperty('BINTRAY_KEY') ? BINTRAY_PASSWORD : ""
  
      configurations = ["archives"]
      pkg {
          repo = 'maven'
          name = 'MaterialDesignLibrary'
          desc = 'This is a library with components of Android L to you use in android 2.2'
          websiteUrl = siteUrl
          issueTrackerUrl = issueUrl
          vcsUrl = gitUrl
          licenses = ['Apache-2.0']
          labels = []
          publicDownloadNumbers = true
      }
  }
  
  dependencies {
      compile 'com.nineoldandroids:library:2.4.+'
      compile 'com.android.support:support-v4:21.+'
  }
  
  install {
      repositories.mavenInstaller {
          pom {
              project {
                  packaging 'aar'
                  name 'MaterialDesignLibrary'
                  url siteUrl
                  licenses {
                      license {
                          name 'The Apache Software License, Version 2.0'
                          url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
                      }
                  }
                  developers {
                      developer {
                          id 'navasmdc'
                          name 'Iván Navas'
                          email 'i.navas.mdc@gmail.com'
                      }
                  }
                  scm {
                      connection gitUrl
                      developerConnection gitUrl
                      url siteUrl
                  }
              }
          }
      }
  }
  
  task sourcesJar(type: Jar) {
      from android.sourceSets.main.java.srcDirs
      classifier = 'sources'
  }
  
  task javadoc(type: Javadoc) {
      source = android.sourceSets.main.java.srcDirs
      classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
  }
  
  task javadocJar(type: Jar, dependsOn: javadoc) {
      classifier = 'javadoc'
      from javadoc.destinationDir
  }
  
  artifacts {
      archives javadocJar
      archives sourcesJar
  }
  
  task findConventions &lt;&lt; {
      println project.getConvention()
  }
  </code></pre>