【问题标题】:Flutter -> Could not resolve com.google.firebase:firebase-messaging:[10.2.1, 17.3.99]Flutter -> 无法解析 com.google.firebase:firebase-messaging:[10.2.1, 17.3.99]
【发布时间】:2021-02-23 16:05:46
【问题描述】:

因此我无法编译我的项目:

FAILURE: Build failed with an exception.


* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve com.google.firebase:firebase-messaging:[10.2.1, 17.3.99].
     Required by:
         project :app > com.onesignal:OneSignal:3.15.3
      > Failed to list versions for com.google.firebase:firebase-messaging.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/google/firebase/firebase-messaging/maven-metadata.xml.
            > Could not get resource 'https://jcenter.bintray.com/com/google/firebase/firebase-messaging/maven-metadata.xml'.
               > Could not GET 'https://jcenter.bintray.com/com/google/firebase/firebase-messaging/maven-metadata.xml'.
                  > Read timed out
   > Could not resolve com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99].
     Required by:
         project :app > com.onesignal:OneSignal:3.15.3
32
      > Skipped due to earlier error
   > Could not resolve com.google.android.gms:play-services-base:[10.2.1, 16.1.99].
     Required by:
         project :app > com.onesignal:OneSignal:3.15.3
32
      > Skipped due to earlier error

* 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 3m 49s

昨晚项目运行良好。旧提交在我运行时显示相同的错误

【问题讨论】:

标签: android firebase flutter build.gradle onesignal


【解决方案1】:

我遇到了同样的问题。我等了一晚,然后它又开始工作了。似乎这是 bintrays 服务器上偶尔出现的临时问题。

【讨论】:

  • 我通过删除“build”文件夹并在 android studio 中运行应用程序而不是 Visual Studio 代码解决了这个问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-02-25
  • 2019-03-30
  • 1970-01-01
  • 2018-01-18
  • 1970-01-01
  • 2023-04-10
  • 1970-01-01
相关资源
最近更新 更多