仍然收到警告:配置 'compile' 已过时并已被替换为 'implementation' [英] Still getting warning : Configuration 'compile' is obsolete and has been replaced with 'implementation'
本文介绍了仍然收到警告:配置 'compile' 已过时并已被替换为 'implementation'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在我的项目的 build.gradle
中用 implementation
替换了每次出现的 compile
,但我仍然收到此警告:
I have replaced every occurrence of compile
by implementation
in my project's build.gradle
, but I'm still getting this warning :
我试图在整个项目中寻找编译",但没有找到匹配项.那么可能是什么原因呢?
I tried to look for "compile " in the whole project but no match was found. So what could be the cause?
推荐答案
我已将 com.google.gms:google-services
从 3.1.1
更新为 3.2.0
并且警告停止出现.
I've updated com.google.gms:google-services
from 3.1.1
to 3.2.0
and the warning stopped appearing.
buildscript {
repositories {
google()
jcenter()
}
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'
}
}
这篇关于仍然收到警告:配置 'compile' 已过时并已被替换为 'implementation'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文