title: Could not find method compile() for arguments [com.android.support:appcompat-v7:25.0.0]
body: <p>Trying to build a react native project, and cannot compile appcompat</p>
  
  <blockquote>
    <p>Could not find method compile() for arguments [com.android.support:appcompat-v7:25.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</p>
  </blockquote>
  
  <p>build.gradle</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      ext {
          buildToolsVersion = "28.0.3"
          minSdkVersion = 21
          compileSdkVersion = 28
          targetSdkVersion = 27
          supportLibVersion = "28.0.0"
      }
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.3.0'
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
          compile 'com.android.support:appcompat-v7:25.0.0'
          compile 'com.android.support:support-annotations:25.0.0'
          compile 'com.android.support:design:25.0.0'
      }
  }
  
  allprojects {
      repositories {
          mavenLocal()
          google()
          jcenter()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url "$rootDir/../node_modules/react-native/android"
              url "$rootDir/../node_modules/expo-camera/android/maven"
          }
      }
  }
  
  
  task wrapper(type: Wrapper) {
      gradleVersion = '4.7'
      distributionUrl = distributionUrl.replace("bin", "all")
  }
  </code></pre>
  
  <p><strong>UPDATE</strong>
  changing to implementation yields</p>
  
  <pre><code>ERROR: Could not find method implementation() for arguments [com.android.support:appcompat-v7:25.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
  </code></pre>