title: Gradle sync failed: Unable to find method org.gradle.api.artifacts.ProjectDependency.getProjectConfiguration()Lorg/gradle/api/artifacts/Configuration
body: <p>I try to import an existing project in Android studio.</p>
  
  <p>When importing it, i've got an Error with Gradle :</p>
  
  <blockquote>
    <p>Gradle sync failed: Unable to find method 'org.gradle.api.artifacts.ProjectDependency.getProjectConfiguration()Lorg/gradle/api/artifacts/Configuration;'</p>
  </blockquote>
  
  <p>I tryed to : - Re-download dependencies and sync project : Fail (same error).</p>
  
  <p>/build.gradle :</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
          jcenter()
      }
      dependencies {
          classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
          classpath 'com.android.tools.build:gradle:2.1.2'
          classpath 'org.robovm:robovm-gradle-plugin:1.12.0'
          classpath 'com.google.gms:google-services:3.0.0' // google-services plugin
  
      }
  }
  
  allprojects {
      apply plugin: "idea"
  
      version = '1.0'
      ext {
          appName = "MyApp"
          gdxVersion = '1.9.2'
          roboVMVersion = '1.12.0'
          box2DLightsVersion = '1.4'
          ashleyVersion = '1.7.0'
          aiVersion = '1.8.0'
      }
  
      repositories {
          mavenCentral()
          maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
          maven { url "https://oss.sonatype.org/content/repositories/releases/" }
          maven {
              url "https://maven.google.com" // Google's Maven repository
          }
      }
  }
  
  project(":android") {
      apply plugin: "android"
  
      configurations { natives }
  
      dependencies {
          compile project(":core")
          compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
      }
  }
  
  project(":core") {
      apply plugin: "java"
  
  
      dependencies {
          compile "com.badlogicgames.gdx:gdx:$gdxVersion"
      }
  }
  </code></pre>
  
  <p>/app/build.gradle</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
          jcenter()
      }
      dependencies {
          classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
          classpath 'com.android.tools.build:gradle:2.1.2'
          classpath 'org.robovm:robovm-gradle-plugin:1.12.0'
          classpath 'com.google.gms:google-services:3.0.0' // google-services plugin
  
      }
  }
  
  allprojects {
      apply plugin: "idea"
  
      version = '1.0'
      ext {
          appName = "Checkers"
          gdxVersion = '1.9.2'
          roboVMVersion = '1.12.0'
          box2DLightsVersion = '1.4'
          ashleyVersion = '1.7.0'
          aiVersion = '1.8.0'
      }
  
      repositories {
          mavenCentral()
          maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
          maven { url "https://oss.sonatype.org/content/repositories/releases/" }
          maven {
              url "https://maven.google.com" // Google's Maven repository
          }
      }
  }
  
  project(":android") {
      apply plugin: "android"
  
      configurations { natives }
  
      dependencies {
          compile project(":core")
          compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
      }
  }
  
  project(":core") {
      apply plugin: "java"
  
  
      dependencies {
          compile "com.badlogicgames.gdx:gdx:$gdxVersion"
      }
  }
  </code></pre>
  
  <p>Thanks in advance</p>