Warning:Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and

今天在写程序时遇到一个 bug ,描述如下:

Warning:Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.

我的解决方法是,在 app 的 Gradle 中:

compile  改为  implementation
androidTestCompile  改为  androidTestImplementation
testCompile  改为   testImplementation

这样替换了过时的,再重新编译即可。

猜你喜欢

转载自blog.csdn.net/wuqingsen1/article/details/84188188