【问题标题】:Received status code 502 from server: Bad Gateway with exo player从服务器收到状态码 502:Bad Gateway with exo player
【发布时间】:2022-01-06 13:58:43
【问题描述】:

我收到了这个错误

> Could not GET 'https://google.bintray.com/exoplayer/io/flutter/x86_debug/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/x86_debug-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'. Received status code 502 from server: Bad Gateway"

我的当前设置

distributionUrl = https://services.gradle.org/distributions/gradle-6.7.1-all.zip
classpath 'com.android.tools.build:gradle:4.1.0'
compileSdkVersion 30
targetSdkVersion 30

【问题讨论】:

  • 似乎 bintray.com 已“日落”,这似乎意味着它已关闭,因此我也遇到了构建问题,因此我试图了解为什么或什么包依赖于过时的服务.

标签: flutter dart flutter-web


【解决方案1】:

由于 bintray.com 停止服务,大多数依赖项已移至 mavenCentral。所以对我有用的是添加mavenCentral() 你在你的android/build.gradle 中定义了google()。

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        mavenCentral() <-- Added
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral() <-- Added
    }
}

【讨论】:

    猜你喜欢
    • 2022-01-07
    • 2018-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-26
    • 2019-01-17
    • 2021-09-11
    • 2018-01-20
    相关资源
    最近更新 更多