gpt4 book ai didi

android - 添加Firebase ML视觉时,gradle构建失败

转载 作者:行者123 更新时间:2023-12-03 06:24:52 31 4
gpt4 key购买 nike

我将此行添加到build.gradle(:app)中,然后失败。

 implementation 'com.google.firebase:firebase-ml-vision:24.1.0'
下面是错误消息:
    In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0.
2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co
mmon@[19.0.2], but play-services-vision-common version was 19.1.0.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision@{strictly 24.1.0}
-- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0}
-- Project 'app' depends onto com.google.firebase:firebase-bom@26.0.0
-- Project 'app' depends onto com.google.android.gms:play-services-vision-image-label@{strictly 18.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-vision@{strictly 20.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-bom@{strictly 26.0.0}

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = true }" to your bu
ild.gradle file.
我也尝试 this,但是仍然行不通。
如何解决这个问题?提前致谢!

最佳答案

我们对Firebase的Firebase ML Kit进行了一些更改,以更好地区分设备上的API和基于云的API。 “ML Kit”(没有firebase品牌),包含所有设备上的API。 Here's从Firebase mlkit到mlkit的迁移指南。
对于此特定的依赖关系问题,firebase mlkit依赖关系存在一个已知问题。您可以尝试this fix看看它对您有用吗?

关于android - 添加Firebase ML视觉时,gradle构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64576868/

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