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 @   adam.li  阅读(951)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示