title: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018
body: <p>when I try to compile project:Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
  It will be removed at the end of 2018. For more information see: <a href="http://d.android.com/r/tools/update-dependency-configurations.html" rel="nofollow noreferrer">http://d.android.com/r/tools/update-dependency-configurations.html</a></p>
  
  <p>this is my build.gradle(Module: app):</p>
  
  <pre><code>apply plugin: 'com.android.application'
  android {
      compileSdkVersion 26
      buildToolsVersion '27.0.3'
      defaultConfig {
          applicationId "ir.chistaapplication.www.myapplication20"
          minSdkVersion 15
          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'
          }
          dependencies {
              compile 'com.android.support:appcompat-v7:26.1.0'
          }
      }
  }
  </code></pre>