【发布时间】:2022-01-06 23:39:09
【问题描述】:
当我启动我的应用程序时,我收到了此错误消息。自上次运行以来,我没有进行任何更改,当时一切都很好。 有谁知道如何解决这个问题? 谢谢。
FAILURE: Build failed with an exception.
- 出了什么问题: 无法确定任务 ':app:processDebugResources' 的依赖关系。
无法解析配置“:app:debugRuntimeClasspath”的所有任务依赖项。 无法解析 io.grpc:grpc-core:[1.28.0]。 要求: 项目:app > 项目:cloud_firestore > com.google.firebase:firebase-firestore:22.1.2 > io.grpc:grpc-android:1.28.0 项目:app > 项目:cloud_firestore > com.google.firebase:firebase-firestore:22.1.2 > io.grpc:grpc-okhttp:1.28.0 > 无法列出 io.grpc:grpc-core 的版本。 > 无法从 https://google.bintray.com/exoplayer/io/grpc/grpc-core/maven-metadata.xml 加载 Maven 元数据。 > 无法获取资源“https://google.bintray.com/exoplayer/io/grpc/grpc-core/maven-metadata.xml”。 > 无法获取“https://google.bintray.com/exoplayer/io/grpc/grpc-core/maven-metadata.xml”。从服务器收到状态码 502:Bad Gateway
-
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
-
通过https://help.gradle.org获得更多帮助
在 6 秒内构建失败 异常:Gradle 任务 assembleDebug 失败,退出代码为 1
【问题讨论】:
-
我遇到了同样的错误 =( 昨天的构建还可以
-
这里也有同样的问题。早上构建工作正常,但几个小时后我收到“502 Bad Gateway”错误。你解决了吗?
-
你可以采纳这个答案stackoverflow.com/a/70360614/12052309你必须严格设置io.grpc:grpc-core的版本
标签: flutter google-cloud-firestore