Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36636969/article/details/80647416

android studio 更新到3.1版本之后一直有警告,谷歌翻译了一下:配置'compile'已经过时,并已被'implementation'取代

compile想必都不陌生,就是存在gradle文件下的


解决方案;把dependencies 下的compile 修改成implementation  同步项目,项目中的警告就消失了

其中,dependencies在build.gradle文件中:如下图


猜你喜欢

转载自blog.csdn.net/qq_36636969/article/details/80647416