由于这个原因,我无法编译我的项目:
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昨天晚上这个项目运行得很好。旧的提交在我运行时显示相同的错误
发布于 2021-03-16 19:08:02
我也有同样的问题。我等了一个晚上,然后它又开始工作了。这似乎是一个偶然的临时问题,在二进制托盘服务器。
https://stackoverflow.com/questions/66336729
复制相似问题