【问题标题】:react native android package repo (bintray)反应原生 android 包 repo (bintray)
【发布时间】:2022-01-14 14:48:18
【问题描述】:

我们目前正在构建一个移动应用程序,它仍在使用 jCenter 作为它的包存储库。我知道 jCenter 已经日落,但是我认为 repos 仍然可以只读。

从昨天开始,我在构建时开始收到以下错误:

Could not determine the dependencies of task ':react-native-vlc-media-player:verifyReleaseResources'.
> Could not resolve all task dependencies for configuration ':react-native-vlc-media-player:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native:+.
     Required by:
         project :react-native-vlc-media-player
      > Failed to list versions for com.facebook.react:react-native.
         > Unable to load Maven meta-data from https://dl.bintray.com/videolan/Android/com/facebook/react/react-native/maven-metadata.xml.
            > Could not get resource 'https://dl.bintray.com/videolan/Android/com/facebook/react/react-native/maven-metadata.xml'.
               > Could not GET 'https://dl.bintray.com/videolan/Android/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

bintray 的下载服务似乎没有运行,我不确定这是否完全消失了,或者他们的只读服务是否存在问题。

我们似乎只对“react-native-vlc-media-player”库有这个问题。

我们计划迁移到 Maven,但目前不可行。

【问题讨论】:

    标签: android reactjs native bintray


    【解决方案1】:

    如果你使用 gradle implementation,我可以解决如下 502 问题。

    implementation 'com.xxx.yyy:a.b.c' // not use +
    

    在我编写脚本之前(发生502问题)

    implementation 'com.xxx.yyy:a.b.+' // use +
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-06
      • 2018-02-08
      • 1970-01-01
      相关资源
      最近更新 更多