Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'.It will be removed at the end of
笔记小计,compile会被在底取消,会被api替代,所以会报这个警告,解决警告的方式就是换成api就好了。
关于compile与implementation的区别。
compile:
可以传递依赖引用,编译时间相对来说长久一些
implementation:
不可传递依赖引用,比如,B依赖A,C再依赖B,C却不能依赖A的引用或者依赖。当然他的编译时间就会短一些。
对于api代替compile,他们功能相同。