在调试我的颤振应用程序时,我得到了这个错误。
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
* 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 32s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDevDebug failed with exit code 1直到昨晚我才能调试代码,没有进行任何代码更改。
我试过更改gradle版本,但没有任何效果。
目前使用的分级和分级插件版本:
com.android.tools.build:gradle:7.0.0 //in build.gradle
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip // in gradle-wrapper发布于 2021-12-14 02:12:37
谷歌绑定盘坏了。任何依赖于此的插件都将尝试与https://google.bintray.com/通信,从而引发此错误。
它通过升级所有插件为我工作。
发布于 2021-12-12 17:25:42
要同步分级,在某些情况下使用vpn,如果不使用这些,就会变得复杂
https://stackoverflow.com/questions/70178800
复制相似问题