注意不同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
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/301789.html
標籤:其他
上一篇:[iOS開發]網路請求合集
下一篇:學之路線 ->附計劃
