欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-04-17 11:20:07
...

最近导入项目时,报错“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://*.com/questions/48709870/still-getting-warning-configuration-compile-is-obsolete-and-has-been-replace

相关标签: androidStudio