作为android 开发,gradle/gradlew 命令还是有很大用处的:
常用的gradlew开发命令
- 查看依赖树
// app:dependencies 中的 app 是 module-name ,可根据自己的需求更
// --configuration compile 表示只使用编译期的配置,避免输出所有flavor组合的信息
// -q 为-quiet ,表示输出的为 仅打印errors
可使用gradle -h 查看帮助信息;
./gradlew -q :app:dependencies --configuration compile