gpt4 book ai didi

android - React native buld 失败并显示以下消息 Failed to list versions for com.facebook.react :react-native

转载 作者:行者123 更新时间:2023-12-04 23:46:38 25 4
gpt4 key购买 nike

我正在使用 ReactNative 版本 0.62.2,当我尝试使用命令运行应用程序时react-native run-android构建失败并显示以下错误消息

Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.facebook.react:react-native:+.
Required by:
project :app
project :app > project :react-native-fs
project :app > project :react-native-community_async-storage
project :app > project :react-native-community_datetimepicker
project :app > project :react-native-community_slider
project :app > project :react-native-firebase_analytics
project :app > project :react-native-firebase_app
project :app > project :react-native-firebase_storage
project :app > project :react-native-audio
project :app > project :react-native-document-picker
project :app > project :react-native-file-selector
project :app > project :react-native-get-random-values
project :app > project :react-native-image-crop-picker
project :app > project :react-native-navigation
project :app > project :react-native-scan-barcode
project :app > project :react-native-track-player
project :app > project :react-native-vector-icons
project :app > project :react-native-video
> Failed to list versions for com.facebook.react:react-native.
> Unable to load Maven meta-data from http://dl.bintray.com/lukaville/maven/com/facebook/react/react-native/maven-metadata.xml.
> Could not get resource 'http://dl.bintray.com/lukaville/maven/com/facebook/react/react-native/maven-metadata.xml'.
> Could not GET 'http://dl.bintray.com/lukaville/maven/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
不知道为什么它现在失败了,因为之前它可以正确构建
构建.gradle
buildscript {
ext {
RNNKotlinVersion = "1.3.61"
buildToolsVersion = "28.0.3"
minSdkVersion = 19
compileSdkVersion = 28
targetSdkVersion = 28
RNNKotlinStdlib = "kotlin-stdlib-jdk8"
}
repositories {
google()
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
classpath("com.android.tools.build:gradle:3.5.2")
classpath 'com.google.gms:google-services:4.3.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

最佳答案

Bintray 服务已关闭,解决此问题的唯一方法是迁移到不再使用此 repo 的 React Native 0.65。

关于android - React native buld 失败并显示以下消息 Failed to list versions for com.facebook.react :react-native,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70452454/

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