Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed

【声明:】本文是作者(蘑菇v5)原创,版权归作者 蘑菇v5所有,侵权必究。本文首发在。如若转发,请注明作者和来源地址!未经授权,严禁私自转载!

StackOverflow上的回答

当我最近升级了我的Android Studio时,它提出了这样的信息:
Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed
翻译如下:配置’compile’已经过时,并已被’implementation’取代。它将在2018年底被删除

解决办法:

library下的gradle依赖如下:

Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed_第1张图片
library-gradle依赖

app目录下的gradle依赖如下:

Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed_第2张图片
app-gradle依赖

下面是as如何依赖gradle,官方文章,特别详细:

gradle构建Android应用程序官方文章

你可能感兴趣的:(Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed)