0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【忘備録】ライブラリの依存関係を表示する(特定ライブラリを外す)

Last updated at Posted at 2021-11-09

ライブラリの依存関係を表示する

./gradlew :app:dependencies

こんな感じで依存関係が表示される

+--- com.google.firebase:firebase-config:21.0.1
|    +--- com.google.android.gms:play-services-tasks:17.0.2 -> 17.2.0 (*)
|    +--- com.google.firebase:firebase-abt:21.0.0
|    |    +--- com.google.android.gms:play-services-basement:17.0.0 -> 17.5.0 (*)
|    |    +--- com.google.firebase:firebase-common:20.0.0 (*)
|    |    +--- com.google.firebase:firebase-components:17.0.0 (*)
|    |    \--- com.google.firebase:firebase-measurement-connector:18.0.0 -> 19.0.0 (*)
|    +--- com.google.firebase:firebase-common:20.0.0 (*)
|    +--- com.google.firebase:firebase-components:17.0.0 (*)
|    +--- com.google.firebase:firebase-installations:17.0.0 (*)
|    +--- com.google.firebase:firebase-installations-interop:17.0.0 (*)
|    \--- com.google.firebase:firebase-measurement-connector:18.0.0 -> 19.0.0 (*)

特定のライブラリから除外する場合

implementation ("com.google.firebase:firebase-config:1.0.0") {
    exclude group: 'com.google.android.gms', module: 'play-services-tasks'
}

or

implementation ("com.google.firebase:firebase-config:1.0.0") {
    exclude group: 'com.google.android.gms'
}
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?