在使用最新的Android Studio (3.1.4)编译一个旧的Android项目时,我得到了这两行代码:
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
我明白他们的意思以及我如何解决这些警告,也有一些问题可以解释它,但我在developer.android.com上的任何地方都不能引用“testApi”。是警告中的错误还是有testApi命令?它是不是和'testImplementation‘一起添加的,后来被弃用了?
发布于 2018-09-07 01:53:36
之前我们使用的是testCompile,但根据上次Gradle更新,Android Studio有时会显示此消息,尽管我们使用新的keywords.Now编辑gradle文件,但根据我自己的经验,gradle中没有"testApi“。
https://stackoverflow.com/questions/52208214
复制相似问题