当我编译 Android Flutter 应用程序时,出现此错误
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
Run Code Online (Sandbox Code Playgroud)
Bintray 已关闭https://google.bintray.com/exoplayer/org/tensorflow/tensorflow-lite/maven-metadata.xml
出现此问题后,尝试将 android/build.gradle 中的存储库从 Jcenter() 更改为 mavenCentral()
我的 android/build.gradle
buildscript …Run Code Online (Sandbox Code Playgroud)