Configuration 'compile' is obsolete andhasbeen replaced with 'implementation'.

Configuration 'compile' is obsolete andhasbeen replaced with 'implementation'.

Configuration 'provided' is obsolete andhas been replaced with 'compileOnly'.

Configuration 'testCompile' is obsolete andhas been replaced with 'testImplementation'.

Configuration 'testApi' is obsolete and hasbeen replaced with 'testImplementation'.

compile

'compile' 依赖指令将被替代为

1、Implementation, 依赖的库只能在当前module 中引用

2、api,依赖的库能在当前module 中引用和其他依赖当前module 的module中引用    

provided

provided只提供编译支持,但是不会写入apk

provided依赖指令将被替代为'compileOnly'

testCompile

testCompile 编译测试代码时所需要的依赖

testCompile将被替代为'testImplementation'

testApi

testCompile将被替代为'testImplementation'

 

猜你喜欢

转载自blog.csdn.net/u010042669/article/details/79738739
今日推荐