Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018错误解决

Android Studio升级3.1后提示这个

Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html


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


Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'.
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 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018错误解决_第1张图片
image.png

按照提示修改就行了,
compile =》implementation
androidTestCompile =》androidTestImplementation
testCompile => testImplementation
搞定

你可能感兴趣的:(Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018错误解决)