android - React Native 构建失败 Could not HEAD/android-jsc/maven-metadata.xml'

标签 android react-native maven gradle

我正在尝试构建已运行数周的 React native 应用程序,但现在出现以下错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve org.webkit:android-jsc:+.
     Required by:
         project :app
      > Failed to list versions for org.webkit:android-jsc.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/org/webkit/android-jsc/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/org/webkit/android-jsc/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 11s

据说有 jcenter 发生故障,但现在已修复,尽管我在尝试访问 https://jcenter.bintray.com/org/webkit/android-jsc/maven-metadata.xml 时仍然遇到 502 或 403 错误.

我试过用 mavenCentral() 替换 jcenter() 但没有成功。我有什么想法可以让它发挥作用吗?

最佳答案

问题似乎出在 jcenter() 上。最快的解决方法是在运行构建命令之前关闭您的 wifi,然后在它启动后将其打开

关于android - React Native 构建失败 Could not HEAD/android-jsc/maven-metadata.xml',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66648683/

相关文章:

android - 通过拖放使用 android 重新排序 ListView 项目

android - 使用 Fragments 在工具栏中实现 SearchView

javascript - 解析 json react native

menu - 带有路线或导航的 react-native-side-menu 的完整工作示例

maven - 在构建 Maven 站点时,为什么我的注释处理器运行两次并破坏构建?

spring - 使用 Spring 从外部 jar Autowiring 类

java - 使用jetty服务器在eclipse中进行远程调试

Android scaledrawable 似乎不起作用

java - 尝试向 firebase 服务器发送消息时出现异常

android - React native 和 Android 7 支持与 NDK 限制