Eu tenho um mesmo aviso causado ao com.google.gms: google-services.
A solução é atualizar o caminho de classe com.google.gms: google-services para o caminho de classe 'com.google.gms: google-services: 3.2.0' no arquivo build.gradle Projeto:
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
}
No Android Studio, a versão 3.1 das dependências complie word é substituída pela implementação
dependências com aviso no 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'
}
dependências OK no 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 gerar pelo Android Studio 3.1 para novo projeto.
Visite https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html
Para detalhes https://docs.gradle.org/current/userguide/declaring_dependencies.html