Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

502 google.bintray.com Bad Gateway

I have started to build Gradle in my android project but I had the following problem, does anyone know what happens?

I'm trying to get the Tflite dependency from Maven, never had a problem until today.

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
like image 805
Nautilus Avatar asked Dec 01 '21 03:12

Nautilus


2 Answers

We experienced the same the last two days. It looks like it is working again.

like image 122
Morten Bjerg Gregersen Avatar answered Nov 15 '22 03:11

Morten Bjerg Gregersen


after 3 days working on a such problem

I solved it by editing the project buildgradle [appname]/build.gradle as below

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

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

Bonus: i had the same problem with the same library so maybe you need this setting on the same build.gradle file Kotlin version:

        ext.kotlin_version = '1.5.0'

dependencies:

        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
like image 31
Firas Hamzah Melhem Avatar answered Nov 15 '22 05:11

Firas Hamzah Melhem