我在我的应用模块中添加了依赖项**com.google.android.gms:play-services-location**
。
*implementation 'com.google.android.gms:play-services-location:17.0.0'*
gradledependencyInsight任务似乎在向下列出时忽略了可传递的依赖关系,实际上我根本不显示我作为参数传递的组依赖项com.google.android.gms:play-services-location的列表。>
***gradlew -q :app:dependencyInsight --dependency "com.google.android.gms:play-services-location" --configuration implementation***
以下是输出:
*registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)*
*registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)*
*com.google.android.gms:play-services-location:17.0.0*
*variant "runtime" [
org.gradle.status = release (not requested)
org.gradle.usage = java-runtime (not requested)
org.gradle.category = library (not requested)
]*
*com.google.android.gms:play-services-location:17.0.0*
*\--- implementation*
但是,当我以其他依赖项运行此任务时,它会显示其依赖项列表:
*gradlew -q :app:dependencyInsight --dependency "com.google.android.gms:play-services-tasks" --configuration implementation*
输出:
*com.google.android.gms:play-services-tasks:17.0.0*
*+--- com.google.android.gms:play-services-base:17.0.0*
*| +--- com.google.android.gms:play-services-location:17.0.0*
*| | \--- implementation*
*| \--- com.google.firebase:firebase-iid-interop:16.0.0 (requested com.google.android.gms:play-services-base:15.0.1)*
*| \--- com.google.firebase:firebase-iid:16.0.0*
*| \--- com.google.firebase:firebase-analytics-impl:16.0.0*
*| +--- com.google.firebase:firebase-measurement-connector-impl:16.0.0 (requested com.google.firebase:firebase-analytics-impl:[16.0.0])*
*| | \--- com.google.firebase:firebase-core:16.0.0*
*| | \--- implementation*
*| \--- com.google.firebase:firebase-analytics:16.0.0 (requested com.google.firebase:firebase-analytics-impl:[16.0.0])*
*| +--- com.google.firebase:firebase-core:16.0.0 (*)*
*| \--- com.google.firebase:firebase-measurement-connector-impl:16.0.0 (requested com.google.firebase:firebase-analytics:[16.0.0]) (*)*
*\--- com.google.android.gms:play-services-location:17.0.0 (*)*
有人可以帮助我了解我在这里第一个任务所缺少的吗?