How to find dependencies of library?

android

(JianxinLi) #1

I want to find dependencies of a library. For example, in my project, I implement android support library.

implementation 'com.android.support:appcompat-v7:26.1.0'

So how can I find dependencies of library(in this case, support library)?

./gradlew dependencies :app:androidDependencies

> Task :dependencies

------------------------------------------------------------
Root project
------------------------------------------------------------

No configurations

> Task :app:androidDependencies
debug
debugCompileClasspath - Dependencies for compilation
+--- com.android.support:appcompat-v7:26.1.0@aar
+--- com.android.support.constraint:constraint-layout:1.0.2@aar
+--- com.squareup.okhttp3:logging-interceptor:3.9.1@jar
+--- com.squareup.okhttp3:okhttp:3.9.1@jar
+--- com.android.support:animated-vector-drawable:26.1.0@aar
+--- com.android.support:support-vector-drawable:26.1.0@aar
+--- com.android.support:support-v4:26.1.0@aar
+--- com.android.support:support-media-compat:26.1.0@aar
+--- com.android.support:support-fragment:26.1.0@aar
+--- com.android.support:support-core-utils:26.1.0@aar
+--- com.android.support:support-core-ui:26.1.0@aar
+--- com.android.support:support-compat:26.1.0@aar
+--- com.android.support:support-annotations:26.1.0@jar
+--- com.android.support.constraint:constraint-layout-solver:1.0.2@jar
+--- com.squareup.okio:okio:1.13.0@jar
+--- android.arch.lifecycle:runtime:1.0.0@aar
+--- android.arch.lifecycle:common:1.0.0@jar
\--- android.arch.core:common:1.0.0@jar

As you see, after 2017 Google IO, google import Lifecycle and other architecture components.