I have an error when i initialize gradle on my CI

2019-08-18 05:15发布

问题:

I made an CI with Gitlab for a Flutter application and I have an error when i initialize gradle.

The error:

$ flutter packages get
Running "flutter packages get" in codingroomevents...               8.5s
$ flutter build apk --release
Initializing gradle...                                          
ProcessException: Process         "/builds/user/codingroomevents/android/gradlew" exited abnormally:
Downloading https://services.gradle.org/distributions/gradle-4.10.2-all.zip


Exception in thread "main" java.net.SocketException: Network is unreachable     (connect failed)

Thanks in advance.