【问题标题】:Flutter, Android Unable to load Maven meta-data from ~ Build error solutionFlutter, Android Unable to load Maven meta-data from ~ Build error 解决方法
【发布时间】:2022-01-18 00:55:19
【问题描述】:

我正在使用 'stripe_payment: ^1.0.6' 用于在颤振中集成条纹。 Gradle 同步出现此错误。

FAILURE:构建失败并出现异常。

出了什么问题:
无法确定任务 ':app:processDebugResources' 的依赖关系。无法解析配置 ':app:debugRuntimeClasspath' 的所有任务依赖关系。

无法解析 net.minidev:json-smart:[1.3.1,2.3]。
要求:项目:app > 项目:stripe_payment > com.stripe:stripe-android:10.4.6 > com.stripe:stripe-3ds2-android:1.2.2 > com.nimbusds:nimbus-jose-jwt:7.8

未能列出 net.minidev:json-smart 的版本。无法从 https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml 加载 Maven 元数据。

无法获取资源“https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml”。 无法获取“https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml”。从服务器收到状态码 502:Bad Gateway

【问题讨论】:

    标签: android flutter stripe-payments


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      google.bintray.com 下线但 net.minidev:json-smart 版本未严格指定的问题。

      [1.3.1,2.3]表示它的版本范围Gradle Declaring Versions and Ranges

      1. 搜索 net.minidev:json-smart Maven search 的版本。我们有 2.3 和 2.3.1

      2. 使用最大可能的版本 2.3.1 约束您的传递依赖

      编辑您的项目app/build.gradle

      dependencies {
        ...
        constraints {
          implementation('net.minidev:json-smart') {
              version {
                  strictly '2.3.1'
              }
          }
        }
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-12-25
        • 2020-08-21
        • 2022-07-14
        • 1970-01-01
        • 1970-01-01
        • 2022-12-02
        • 2022-12-28
        • 1970-01-01
        相关资源
        最近更新 更多