title: build gradle causes: Gradle DSL method not found: 'implementation()'
body: <p>My android version is 2.3.3. I update android sdk (26). I get an error after updating. I'm having trouble with build.gradle. What's wrong my code? How to use the DSL implementation() ? How can I configure this project to run ?</p>
  
  <p>build.gradle (Project)</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.3'    
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }    
  allprojects {
      repositories {
          jcenter()
      }
  }    
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>build.gradle (Module)</p>
  
  <pre><code>apply plugin: 'com.android.application'    
  android {
      compileSdkVersion 26
      buildToolsVersion "26.0.1"
      defaultConfig {
          applicationId "com.ppl.restaurant"
          minSdkVersion 16
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  allprojects {
      repositories {
          jcenter()
          maven {
              url "https://maven.google.com"
          }
      }
  }
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:26.0.1'
      compile "com.android.support:support-core-utils:26.0.1"
      implementation 'info.androidhive:barcode-reader:1.1.2'
      implementation 'com.google.android.gms:play-services-vision:11.0.2'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>Error Message</p>
  
  <pre><code>Error:(38, 0) Gradle DSL method not found: 'implementation()'
  Possible causes:&lt;ul&gt;&lt;li&gt;The project 'Restaurant' 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).
  &lt;a href="fixGradleElements"&gt;Upgrade plugin to version 2.3.3 and sync project&lt;/a&gt;&lt;/li&gt;&lt;li&gt;The project 'ABC' may be using a version of Gradle that does not contain the method.
  &lt;a href="open.wrapper.file"&gt;Open Gradle wrapper file&lt;/a&gt;&lt;/li&gt;&lt;li&gt;The build file may be missing a Gradle plugin.
  &lt;a href="apply.gradle.plugin"&gt;Apply Gradle plugin&lt;/a&gt;&lt;/li&gt;
  </code></pre>