已正确替换为implementation 却仍然报错:Warning:Configuration 'compile' is obsolete and has been replaced with 'i

最近导入项目时,报错“Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018”,按照错误的信息将项目中的所有错误进行替换,却仍然报错,经过查找解决方法如下。

将com.google.gms:google-services更新为3.2.1,在工程的build.gradle下增加:com.google.gms:google-services3.2.1.

 

 dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
        classpath 'com.google.gms:google-services:3.2.1'
    }

解决方案从以下网址找到,传送门:

https://stackoverflow.com/questions/48709870/still-getting-warning-configuration-compile-is-obsolete-and-has-been-replace

你可能感兴趣的:(学习之路)