gpt4 book ai didi

react-native - React-Native构建失败无法下载protobuf-java-3.4.0.jar(com.google.protobuf:protobuf-java:3.4.0)

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

运行npx react-native run-android时获取构建失败
错误

配置根项目“AwesomeProject”时发生问题。
无法解析配置':classpath'的所有 Artifact 。
无法下载protobuf-java-3.4.0.jar(com.google.protobuf:protobuf-java:3.4.0)
无法获取资源“https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar”。

下面的是我的build.gradle文件

buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.2")

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

allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}

google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}

ERROR SCREENSHOT

最佳答案

解决了
由于某些网络问题,我无法访问存储库

关于react-native - React-Native构建失败无法下载protobuf-java-3.4.0.jar(com.google.protobuf:protobuf-java:3.4.0),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61997382/

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