title: Android Studio Gradle DSL method not found: 'mavencentral()'
body: <p>I am trying to use facebook SDK in my android apps, and I am starting to add maven central repository to my <code>build.gardle</code>. Although, I've found 2 <code>build.gardle</code> which belong to project and app. Here they are;</p>
  
  <ul>
  <li>Android Studio: <strong>1.5.1</strong>  </li>
  <li>Gradle Version: <strong>2.8</strong>  </li>
  <li>Android Plugin Version: <strong>1.5.0</strong></li>
  </ul>
  
  <p><strong>Build.gardle (Project)</strong></p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
          mavencentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.5.0'
          compile 'com.facebook.android:facebook-android-sdk:[4,5)'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          mavencentral()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p><strong>Build.gardle(app)</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.2"
  
      defaultConfig {
          applicationId "com.example.test"
          minSdkVersion 15
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.2.0'
      compile 'com.android.support:design:23.2.0'
  }
  </code></pre>
  
  <p>Yet I get this following error during build;</p>
  
  <blockquote>
    <p>Gradle DSL method not found: mavencentral()</p>
  </blockquote>
  
  <p>I have tried;</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/28614898/android-studio-gradle-dsl-method-not-found-classpath">Checking both gardle files</a></li>
  <li><a href="https://stackoverflow.com/questions/26851230/android-gradle-build-error9-0-gradle-dsl-method-not-found-compile">Removing android compile dependencies that's actually should be there</a></li>
  <li><a href="https://stackoverflow.com/questions/21881092/build-script-error-unsupported-gradle-dsl-method-found-android">Checking android <code>packagingOptions.exclude</code></a></li>
  <li><a href="https://stackoverflow.com/questions/23409384/android-studio-build-script-error-unsupported-gradle-dsl-method-found-andro">Checking if there's android method in the gardle</a></li>
  </ul>
  
  <p>And, I haven't tried to <a href="https://stackoverflow.com/questions/27735646/android-studio-gradle-dsl-method-not-found-android-error17-0">update my gardle or android studio</a>, but I am just wondering whether it's really needed or I am doing something wrong with my <code>build.gardle</code>.</p>
  
  <p>Any suggestion is appreciated. Thank you.</p>