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

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

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

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

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

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

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

相关文章:

  • 2021-10-01
  • 2021-04-15
  • 2022-03-08
  • 2021-08-29
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
猜你喜欢
  • 2022-01-05
  • 2021-08-16
  • 2021-04-22
  • 2021-09-23
  • 2021-10-31
  • 2021-11-05
  • 2021-12-29
相关资源
相似解决方案