title: DSL method not found: implementation()
body: <p>I tried to add the Fresco library by to my project by adding this to my app-level gradle file </p>
  
  <pre><code>implementation 'com.facebook.fresco:fresco:1.8.0'
  </code></pre>
  
  <p>Then I get the follwing error message:</p>
  
  <pre><code>Gradle DSL method not found: 'implementation()' Possible causes:
  The project may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0). Upgrade plugin to version 3.0.1 and sync project
  The project may be using a version of Gradle that does not contain the method. Open Gradle wrapper file
  The build file may be missing a Gradle plugin. Apply Gradle plugin
  </code></pre>
  
  <p>When I run gradle --version it tells me that I am using gradle 4.5.</p>
  
  <p>This is my top-level gradle file.</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.google.gms:google-services:3.1.0'
          classpath 'com.android.tools.build:gradle:3.0.1'
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  
  allprojects {
      repositories {
          jcenter()
          maven { url "http://dl.bintray.com/populov/maven"}
          maven { url "https://jitpack.io" }
          maven { url "https://maven.google.com" }
          mavenCentral()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>This is my app-level gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 25
      buildToolsVersion '25.0.0'
      aaptOptions.cruncherEnabled = false
      aaptOptions.useNewCruncher = false
  
      defaultConfig {
          applicationId "com.example.project1.3"
          minSdkVersion 16
          targetSdkVersion 23
          versionCode 1
          versionName "state1.0"
          renderscriptTargetApi 24
          renderscriptSupportModeEnabled true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar']) 
      // lots of other dependencies
      implementation 'com.facebook.fresco:fresco:1.8.0'
  }
  </code></pre>
  
  <p>I also have this in my gradle-wrapper.properties file.</p>
  
  <pre><code>distributionUrl= https\://services.gradle.org/distributions/gradle-4.1-all.zip
  </code></pre>
  
  <p>I have basically tried everything from here <a href="https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html" rel="nofollow noreferrer">https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html</a> but the problem persists.</p>
  
  <p>Any help would be greatly appreciated. Thank you!</p>