gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 00:03:18 30 4
gpt4 key购买 nike

我正在尝试构建已运行数周的 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/

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