android studio compile api implementation 区别

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。
 

posted @ 2018-12-02 11:33  jason_bo  阅读(1302)  评论(0)    收藏  举报