从服务器收到状态代码 502:Bad Gateway with exo player
Received status code 502 from server: Bad Gateway with exo player
我收到这个错误
> 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 停止服务,大多数依赖项已移至 mavenCentral。所以对我有用的是在 android/build.gradle.
中定义 google()
的地方添加 mavenCentral()
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
}
}
我收到这个错误
> 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 停止服务,大多数依赖项已移至 mavenCentral。所以对我有用的是在 android/build.gradle.
中定义google()
的地方添加 mavenCentral()
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
}
}