包冲突依赖分析

2022-05-25  本文已影响0人  CentForever

分析依赖

常见指令

─   ~/AndroidStudioProjects/FileDownloader ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────── at  16:39:12 ─╮
╰─❯ ./gradlew :app:dependencyInsight --configuration debugCompileClasspath --dependency work-runtime                                                                            ─╯

> Task :app:dependencyInsight
No dependencies matching given input were found in configuration ':app:debugCompileClasspath'

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed

╭─   ~/AndroidStudioProjects/FileDownloader ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────── at  16:40:20 ─╮
╰─❯ ./gradlew :ecabin:dependencyInsight --configuration debugCompileClasspath --dependency work-runtime                                                                         ─╯

> Task :ecabin:dependencyInsight
androidx.work:work-runtime:2.7.1
   variant "releaseVariantReleaseApiPublication" [
      org.gradle.category                             = library (not requested)
      org.gradle.dependency.bundling                  = external (not requested)
      org.gradle.libraryelements                      = aar (not requested)
      org.gradle.usage                                = java-api
      org.gradle.status                               = release (not requested)

      Requested attributes not found in the selected variant:
         com.android.build.api.attributes.BuildTypeAttr  = debug
         org.gradle.jvm.environment                      = android
         com.android.build.api.attributes.AgpVersionAttr = 7.2.0
   ]
   Selection reasons:
      - By constraint : debugRuntimeClasspath uses version 2.7.1

androidx.work:work-runtime:2.7.1
\--- debugCompileClasspath

androidx.work:work-runtime:{strictly 2.7.1} -> 2.7.1
\--- debugCompileClasspath

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed

注意事项

参考

QA

image.png
上一篇下一篇

猜你喜欢

热点阅读