android studio配置 compileOnly、implementation、api使用


implementation:作用是编译同时打包,且当前mudule打包的aar或jar, 不能被引用当前module 的模块引用。
api:作用是编译同时打包,且当前mudule打包的aar或jar, 能被引用当前module 的模块引用。
compileOnly:作用是只编译不打包。
比如项目中要引用aarA,如果项目中 其他模块已经引用打包过了aarA,则需要使用compileOnly

AndroidStudio工程引入framework.jar 可参考:https://zhuanlan.zhihu.com/p/584165665?utm_id=0

posted @ 2023-10-13 13:18  adam.li  阅读(519)  评论(0编辑  收藏  举报