ライブラリの依存関係を表示する
./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'
}