簡體   English   中英

502 google.bintray.com 網關錯誤

[英]502 google.bintray.com Bad Gateway

我已經開始在我的 android 項目中構建 Gradle 但我遇到了以下問題,有人知道會發生什么嗎?

我正在嘗試從 Maven 獲取 Tflite 依賴項,直到今天才出現問題。

Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve org.tensorflow:tensorflow-lite:+.
     Required by:
         project :app > project :tflite
      > Failed to list versions for org.tensorflow:tensorflow-lite.
         > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/org/tensorflow/tensorflow-lite/maven-metadata.xml.
            > Could not get resource 'https://google.bintray.com/exoplayer/org/tensorflow/tensorflow-lite/maven-metadata.xml'.
               > Could not GET 'https://google.bintray.com/exoplayer/org/tensorflow/tensorflow-lite/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

最近兩天我們也遇到了同樣的情況。 看起來它又開始工作了。

我也遇到了同樣的錯誤,你們解決了嗎? 請幫幫我

對於 JCenter / Bintray 仍有問題的人,您可以切換到 JitPack。

All you need to do is to search the GitHub project of your choice in https://jitpack.io then copy-paste the provided code in your build.gradle file.

在解決此類問題 3 天后

我通過編輯項目 buildgradle [appname]/build.gradle 解決了這個問題,如下所示

    repositories {
        google()
    //commit this: maven
       //maven() 
    // add this
        mavenCentral() 
    }

allprojects {
    repositories {
        google()
    //commit this: maven
       //maven() 
    // add this
        mavenCentral() 
    }
}

獎勵:我對同一個庫有同樣的問題,所以也許你需要在同一個 build.gradle 文件 Kotlin 版本上進行此設置:

        ext.kotlin_version = '1.5.0'

依賴項:

        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

注釋 jcenter() 並添加 mavenCentral()

 repositories {
       jcenter()
        mavenCentral()
        google()
    }

在 jfrog bintray ( https://status.bintray.com/incidents/2wvx6d5f807c )部分中斷下載部分存在問題:

您可以在https://status.bintray.com/中查看當前狀態

或者,這也可能是您這邊的問題。 您可以做的是在管理員 cmd propmt 中使用此命令刷新您的 DNS 信息

ipconfig /flushdns

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM