Android studio_Configuration 'compile' is obsolete and has been replaced with 'implementation' and..

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

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

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

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

发布了9 篇原创文章 · 获赞 4 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_29971465/article/details/82767095