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
We experienced the same the last two days. It looks like it is working again.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With