WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'
升级Android Studio 3.3.1之后,编译报错如下:
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
是配置的api 过时,需更换新的配置 18年底将彻底删除!!!
点击 报错的地方,修改图中选中的地方 即可
如:
compile 改成implementation
androidTestCompile改成androidTestImplementation
testCompile 改成testImplementation
3.3.1