CoXier
CoXier

Reputation: 2663

How to find dependencies of library?

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'

When I execute ./gradlew :app:androidDependencies,

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

Upvotes: 3

Views: 844

Answers (1)

albodelu
albodelu

Reputation: 7971

Check point 5 of this answer, and use this command or the new Build tab in Android Studio 3.1:

./gradlew -q dependencies app:dependencies

./gradlew -q dependencies app:dependencies --configuration 'productFlavors'DebugCompileClasspath

where 'productFlavors' needs to be replaced by one of your product flavors like production.

enter image description here

enter image description here

Upvotes: 4

Related Questions