最近运行的时候总是报错:Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’
打开build.gradle文件
鼠标放到黄色底纹区域有提示
修改版本编号后黄色区域消失。
点击运行之后又有新的错
按照提示把compile 替换成implementation即可:
最近运行的时候总是报错:Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’
打开build.gradle文件
鼠标放到黄色底纹区域有提示
修改版本编号后黄色区域消失。
点击运行之后又有新的错
按照提示把compile 替换成implementation即可: