仍然警告:配置'编译'已经过时,并已被'实施'取代 [英] Still getting warning : Configuration 'compile' is obsolete and has been replaced with 'implementation'
本文介绍了仍然警告:配置'编译'已经过时,并已被'实施'取代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目的 build.gradle中,我已经用
,但我仍然收到此警告:实现
替换了 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-服务从
3.1.1
到 3.2.0
,并且警告停止显示。 p>
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'
}
}
这篇关于仍然警告:配置'编译'已经过时,并已被'实施'取代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文