compile与api
二者等同,无区别
implementation与compile或implementation与api
implementation编译的依赖只作用于当前的module。即APP module依赖了core module,core module中使用implementation编译的三方库(如glide)只对core module起作用,app module中无法使用该三方库(glide);如果core module 使用implementation依赖了base module,则APP module中无法使用base module。
本文详细解释了Gradle中不同依赖配置的作用,特别是compile与implementation的区别。通过实例说明了implementation依赖仅对当前模块有效,而不会传递到依赖此模块的其他模块。
132

被折叠的 条评论
为什么被折叠?



