7

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
TBA
  • 1,921
  • 4
  • 13
  • 26
Nautilus
  • 186
  • 3
  • 13
  • 1
    https://status.bintray.com/ – Shubham AgaRwal Dec 13 '21 at 05:18
  • My team has also been having problems pulling dependencies from Bintray, and i'm seeing some blog posts from JFrog that they will be shutting down Bintray. Relevant blog post here https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ I'll update when I find a solution, i.e., another repository to migrate to. – Nicolas Mage Dec 24 '21 at 00:35
  • @JakeSchnorr Update my question, try this [my question](https://stackoverflow.com/questions/70309075/problems-in-android-repository-flutter-tensorflow-lite-by-bintray-502/70388139#70388139) – Nautilus Dec 27 '21 at 05:18
  • I think the appropriate long term solution here is to simply migrate away from any JFrog repos as they have become unreliable, even through their commitment to "remain read-only". – Nicolas Mage Dec 27 '21 at 20:29

4 Answers4

3

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

1

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"
Dharman
  • 30,962
  • 25
  • 85
  • 135
0

For those who still have issues with JCenter / Bintray, you can switch to 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.

Valentin
  • 5,379
  • 7
  • 36
  • 50
  • Update my question, try this [my question ] (https://stackoverflow.com/questions/70309075/problems-in-android-repository-flutter-tensorflow-lite-by-bintray-502/70388139#70388139) – Nautilus Dec 27 '21 at 05:21
0

Comment jcenter() and add mavenCentral()

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