美文网首页
[Tips] 查看第三方库依赖结构

[Tips] 查看第三方库依赖结构

作者: simplehych | 来源:发表于2019-01-25 11:12 被阅读0次

方式一 使用插件 Gradle View

Step1 搜索下载插件
Step2 使用插件 Step3 查看结果

方法二 AndroidStudio 自带 gradle 视图

Step1 使用执行 Step1 查看结果

方法三 命令行

Gradle Command-Line Interface

  1. 在模块的路径下使用,如 app 模块
../gradlew dependencies
  1. 在项目的根路径下使用
./gradlew :app:dependencies

导出查看

./gradlew :app:dependencies > dependencies.txt

根目录下查看配置信息

./gradlew dependencies --info

输出...
Creating configuration androidTestUtil
Creating configuration compile
Creating configuration apk
Creating configuration provided
Creating configuration api
Creating configuration implementation
Creating configuration runtimeOnly
Creating configuration compileOnly
Creating configuration wearApp

查看 implementation,结果不会显示第三方的依赖

./gradlew :app:dependencies --configuration implementation
# or
./gradlew :app:dependencies --configuration compile

直接查看依赖关系 debugCompileClasspath 推荐

./gradlew :app:dependencies --configuration debugCompileClasspath

相关文章

网友评论

      本文标题:[Tips] 查看第三方库依赖结构

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