已正确替换为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'
}
解决方案从以下网址找到,传送门:
下一篇: 安卓-使用adb进行手机截图并保存至电脑