点开Gradle的执行任务的对话框,然后输入dependencies,并在对话框的右上角选择需要查看的模块,最后按回车执行命令即可,如下图:
命令执行后,输出的依赖有很多,随便看一个都可以,比如可以看releaseCompileClasspath的依赖,如下:
releaseCompileClasspath - Compile classpath for compilation 'release' (target (androidJvm)). +--- androidx.swiperefreshlayout:swiperefreshlayout:1.1.0 | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | +--- androidx.core:core:1.1.0 -> 1.5.0 | | +--- androidx.annotation:annotation:1.2.0 | | +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.3.1 | | | +--- androidx.lifecycle:lifecycle-common:2.3.1 | | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | +--- androidx.arch.core:core-common:2.1.0 | | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | --- androidx.versionedparcelable:versionedparcelable:1.1.1 | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | --- androidx.collection:collection:1.0.0 -> 1.1.0 | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | --- androidx.interpolator:interpolator:1.0.0 | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 +--- org.jetbrains.anko:anko-commons:0.10.8 | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.0 -> 1.5.31 | | +--- org.jetbrains:annotations:13.0 | | --- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31 | --- org.jetbrains.anko:commons-base:0.10.8 | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.0 -> 1.5.31 (*) | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 +--- androidx.databinding:viewbinding:7.0.3 | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31 | +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 (*) | --- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31 | --- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 (*) +--- androidx.core:core-ktx:1.5.0 | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.31 -> 1.5.31 (*) | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | --- androidx.core:core:1.5.0 (*)



