gradle命令

154 阅读1分钟

gradle命令查看项目依赖

查看某个flavor的依赖关系

xxxCompileClasspath: xxx默认为debug和release, 配置了其他flavor时为对应flavor名

  • gradlew :app:dependencies --configuration releaseCompileClasspath(compile/releaseCompile)

查看某个库在某个flavor下的依赖关系,示例为support-annotations

  • gradlew :app:dependencyInsight --dependency support-annotations --configuration releaseCompileClasspath