小工具知识网

当前位置: 首页 > 行业知识 > android studio配置 compileOnly、implementation、api使用

行业知识

android studio配置 compileOnly、implementation、api使用

2026-11-10 12:00:52 来源:互联网转载

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

上一篇:害羞音节怎么写?

下一篇:PHP小说网站源码,一键搭建在线阅读平台!