【问题标题】:React Native :: build error | Dependency IncompatibleReact Native :: 构建错误 |依赖不兼容
【发布时间】:2021-01-07 15:40:02
【问题描述】:

我是新来的反应原生并坚持这个依赖错误。我正在研究一个由其他人构建的项目,以前它运行正常。该应用程序使用“react-native-text-detector”库。不知道如何解决这个问题。

在android上运行时出现以下错误。

在项目“app”中,已解析的 Google Play 服务库依赖项依赖于另一个具有确切版本的依赖项(例如“[19.0. 2]",但未解析为该版本。库表现出的行为将是未知的。

依赖失败:com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co mmon@[19.0.2],但 play-services-vision-common 版本是 19.1.0。

以下依赖是直接的或具有传递依赖的项目依赖导致艺术 ifact 的问题。 -- 项目 'app' 依赖于 com.google.firebase:firebase-ml-vision@{strictly 24.1.0} -- 项目 'app' 依赖于 com.google.android.gms:play-services-vision-common@{strictly 19.1.0} -- 项目 'app' 依赖于 com.google.firebase:firebase-ml-vision@24.1.0 -- 项目 'app' 依赖于 com.google.android.gms:play-services-vision-image-label@{strictly 18.0.4} -- 项目 'app' 依赖于 com.google.android.gms:play-services-vision@{strictly 20.0.0}


我试过了:

  • 使用较低版本的 gradle 插件和 gms 服务构建
  • 使用 googleServices.disableVersionCheck = true

到目前为止没有任何效果。任何帮助将不胜感激。 The project gradle file is attached

谢谢!

【问题讨论】:

    标签: firebase react-native dependencies build-error


    【解决方案1】:

    尝试将您的 Gradle 更新到最新版本。 (9 月 23 日 6.6.1)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-23
      • 1970-01-01
      • 2021-12-08
      • 1970-01-01
      • 2019-11-21
      • 2020-09-09
      • 1970-01-01
      • 2022-10-21
      相关资源
      最近更新 更多