Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api' [duplicated]

1

I have this message of warning , although I have already made the change, it still appears to me every time I compile or start the project, maybe I will find some additional correction, but I would like it not to continue appearing.

I show gradle level app.

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
defaultConfig {
    applicationId "com.tics.uniagustiniana"
    minSdkVersion 21
    targetSdkVersion 26
    versionCode 6
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'com.android.support.constraint:constraint-layout:1.1.0'

implementation 'com.google.android.gms:play-services:11.8.0'
implementation 'com.google.firebase:firebase-messaging:11.8.0'
implementation 'com.google.android.gms:play-services-maps:11.8.0'

implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'
testImplementation 'junit:junit:4.12'

//noinspection GradleCompatible
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support:design:26.1.0'

}apply plugin: 'com.google.gms.google-services'

The gradle of the project is like this.

    buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath 'com.android.tools.build:gradle:2.0.0'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.1.1'
    }
    }
allprojects {
    repositories {
        jcenter()
        google()
    }
    }
  task clean(type: Delete) {
    delete rootProject.buildDir
   }
    
asked by Ivan Alfredo 06.06.2018 в 21:15
source

1 answer

3

Update com.google.gms: google-services from 3.1.1 to 3.2.0 and the warning will no longer appear.

Change the line of

classpath 'com.google.gms:google-services:3.1.1'

for

classpath 'com.google.gms:google-services:3.2.0'

UPDATE

keep updating as new updates of com.google.gms:google-services

    
answered by 06.06.2018 / 21:30
source