最近在Android Studio上面部署TensorFlowLite demo,使用的是这个教程:
https://www.jianshu.com/p/50f5c7d32575
我已经Gradle Files成功了:
但是点击运行的时候,要下载这些文件,却报了这个错误:
下载的时候:
我用了翻墙上网还是不能下载,还是会报这个错误:
Connection timed out: connect.If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
具体报错信息如下:
> Task :app:downloadModelFile
Download https://tfhub.dev/tensorflow/lite-model/ssd_mobilenet_v1/1/metadata/2?lite-format=tflite
> Task :app:downloadModelFile FAILED
Execution failed for task ':app:downloadModelFile'.
> de.undercouch.gradle.tasks.download.org.apache.http.conn.HttpHostConnectException: Connect to tfhub.dev:443 [tfhub.dev/142.251.42.238] failed: Connection timed out: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Execution failed for task ':app:downloadModelFile'.
> de.undercouch.gradle.tasks.download.org.apache.http.conn.HttpHostConnectException: Connect to tfhub.dev:443 [tfhub.dev/142.251.42.238] failed: Connection timed out: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
感觉这个太难受了,只是一个官方dome,我都部署那么久,希望有做出来的同学可以帮我看看,谢谢!