美文网首页Android深入
android打印依赖树

android打印依赖树

作者: 米榄卉 | 来源:发表于2020-10-16 18:09 被阅读0次

查询所有依赖:
./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

相关文章

网友评论

    本文标题:android打印依赖树

    本文链接:https://www.haomeiwen.com/subject/fyqtmktx.html