Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run application (pub get failed (server unavailable) -- attempting retry 4 in 8 seconds... ) #23

Closed
LinArcX opened this issue Jan 29, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@LinArcX
Copy link

LinArcX commented Jan 29, 2020

Hi. i can launch the emulator(:CocList FlutterEmulators), but it can't run the application (flutter.run command) and i get this error:

pub get failed (server unavailable) -- attempting retry 4 in 8 seconds...

This is the log when i run: flutter run from terminal:
https://gist.github.com/LinArcX/5815974afafa8bd53408bdefbf1580ac

@iamcco
Copy link
Owner

iamcco commented Jan 30, 2020

Can't help, you should open issue on flutter repo.

@iamcco iamcco added the help wanted Extra attention is needed label Jan 30, 2020
@LinArcX
Copy link
Author

LinArcX commented Jan 30, 2020

Ok. it's a gradle issue. Due to sanctions in my country i should use vpn.
For anyone that maybe will have this issue in future, just update gradle.properties file located in two location:

  1. <your-project-path>/android/gradle.properties
  2. ~/.gradle/gradle.properties

And paste these lines into those mentioned files:

systemProp.socks.proxyHost=<address>
systemProp.socks.proxyPort=<port>

systemProp.http.proxyHost=<address>
systemProp.http.proxyPort=<port>

systemProp.https.proxyHost=<address>
systemProp.https.proxyPort=<port>

@LinArcX LinArcX closed this as completed Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants