0

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: http://d.android.com/r/tools/update-dependency-configurations.html

this is my build.gradle(Module: app):

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'
        }
    }
}
Zoe
  • 27,060
  • 21
  • 118
  • 148
alireza
  • 33
  • 3
  • 9
  • 1
    If you're going to mark something as a duplicate, please put a link in your comment to the original question. thank you – Hank Wilson Jun 05 '18 at 13:04

1 Answers1

1

Replace compile with implementation like this

dependencies {
            implementation 'com.android.support:appcompat-v7:26.1.0'
        }
theanilpaudel
  • 3,348
  • 8
  • 39
  • 67