gpt4 book ai didi

android - 排除 com.google.gms 的子模块

转载 作者:行者123 更新时间:2023-11-29 19:03:58 25 4
gpt4 key购买 nike

这是我的 com.google.android.gms 模块

+--- com.google.android.gms:play-services-location:11.0.1
| +--- com.google.android.gms:play-services-base:[11.0.1] -> 11.0.1
| | \--- com.google.android.gms:play-services-tasks:[11.0.1] -> 11.0.1
| | \--- com.google.android.gms:play-services-basement:[11.0.1] -> 11.0.1
| | \--- com.android.support:support-v4:25.2.0
| | +--- com.android.support:support-compat:25.2.0
| | | \--- com.android.support:support-annotations:25.2.0
| | +--- com.android.support:support-media-compat:25.2.0
| | | +--- com.android.support:support-annotations:25.2.0
| | | \--- com.android.support:support-compat:25.2.0 (*)
| | +--- com.android.support:support-core-utils:25.2.0
| | | +--- com.android.support:support-annotations:25.2.0
| | | \--- com.android.support:support-compat:25.2.0 (*)
| | +--- com.android.support:support-core-ui:25.2.0
| | | +--- com.android.support:support-annotations:25.2.0
| | | \--- com.android.support:support-compat:25.2.0 (*)
| | \--- com.android.support:support-fragment:25.2.0
| | +--- com.android.support:support-compat:25.2.0 (*)
| | +--- com.android.support:support-media-compat:25.2.0 (*)
| | +--- com.android.support:support-core-ui:25.2.0 (*)
| | \--- com.android.support:support-core-utils:25.2.0 (*)
| \--- com.google.android.gms:play-services-tasks:[11.0.1] -> 11.0.1 (*)

目前,我想排除 com.android.support:support-v4:25.2.0(因为它有一些 Fragment 的错误)所以我喜欢

compile ('com.google.android.gms:play-services-location:11.0.1'){
exclude group: 'com.android.support', module: 'support-v4'
}

但是,它不起作用。我在 apply plugin: 'com.google.gms.google-services' 中找到了线索。当我删除 apply plugin: 'com.google.gms.google-services' 时,排除工作。

如何排除 com.google.gms 的子模块?任何帮助或建议将不胜感激。

最佳答案

它认为问题在于您只将它排除在那个单一依赖项的传递依赖项中。

尝试在所有配置上完全排除它

configurations.all.exclude group: 'com.android.support', module: 'support-v4'

关于android - 排除 com.google.gms 的子模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47900981/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com