【问题标题】:Android Studio - library versions conflictAndroid Studio - 库版本冲突
【发布时间】:2018-10-20 13:32:01
【问题描述】:

我收到此错误。我猜其中一个库正在导入版本为 15.0.1 的子库,这就是引发错误的方式。如果我能找到哪个图书馆正在这样做,也许我可以处理这种情况。

我如何确定是哪个库导致了特定子库的导入,例如 com.google.android.gms:play-services-ads-identifier:15.0.1

【问题讨论】:

    标签: android-studio duplicates dependencies conflict


    【解决方案1】:

    您可以像这样排除子库:

    implementation(group: 'com.graphhopper', name: 'graphhopper-core', version: '0.10.alpha3') {
        exclude group: 'com.google.protobuf', module: 'protobuf-java'
        exclude group: 'org.openstreetmap.osmosis', module: 'osmosis-osm-binary'
        exclude group: 'org.apache.xmlgraphics', module: 'xmlgraphics-commons'
    }
    

    当然这只是一个例子。您必须将其应用于您自己的案例。 您可以通过查看 maven repo 找到其中的内容。 举个例子:

    https://mvnrepository.com/artifact/com.graphhopper/graphhopper-core/0.10.0

    如果这就是你要找的东西,请告诉我。

    【讨论】:

    • 我知道...我的问题是如何确定是哪个库造成了问题。
    猜你喜欢
    • 2017-07-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多