当前位置:首页 » 《随便一记》 » 正文

Android gradlew 依赖树_Kslient的博客

8 人参与  2021年12月27日 16:32  分类 : 《随便一记》  评论

点击全文阅读


注意不同flavor对应的依赖
查看不同configuration(debug/release)对应的依赖

查询所有依赖:
./gradlew -q :app:dependencies
查询所有依赖并写入文件:
./gradlew -q :app:dependencies > log.txt
查询某个configuration依赖:
默认可以查询以下这些config:
releaseRuntimeClasspath、debugRuntimeClasspath
releaseCompileClasspath、debugCompileClasspath
./gradlew -q :app:dependencies --configuration releaseRuntimeClasspath
如果配置了不同的flavor可以这样查询某一个flavor的依赖树:
例如flavor名字叫dev,则可以这样查询
./gradlew -q :app:dependencies --configuration devReleaseRuntimeClasspath


点击全文阅读


本文链接:http://zhangshiyu.com/post/32217.html

依赖  查询  则可  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1