I have the same warning for com.google.gms: google-services.
The solution is to update classpath com.google.gms: google-services to classpath 'com.google.gms: google-services: 3.2.0' in the file in build.gradle Project:

buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.google.gms:google-services:3.2.0' } } allprojects { repositories { jcenter() google() } } task clean(type: Delete) { delete rootProject.buildDir }
Android Studio verion 3.1 complie word dependencies replaced by implementation
dependencies with warning in android studio 3.1
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:27.1.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }
Dependencies are normal in android studio 3.1
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }
Gradel is generating Android Studio 3.1 for a new project.

Visit https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html
For more information https://docs.gradle.org/current/userguide/declaring_dependencies.html
source share