While installing tflite package in my flutter application .. flutter pub get is not working after few minutes it shows connection timeout server unavailable though other packages are getting installed.
Asked
Active
Viewed 6,388 times
5
-
Please add your pub spec.yaml to the question. – Josteve Jan 16 '22 at 12:43
-
Please provide enough code so others can better understand or reproduce the problem. – Community Jan 25 '22 at 05:52
1 Answers
4
Try doing this Go to Environment variables**(This PC(My Computer) >Properties>Advanced System Settings> New environment variable)** then add this two variables VariableName: FLUTTER_STORAGE_BASE_URL VariableValue: https://storage.flutter-io.cn and VariableName: PUB_HOSTED_URL VariableValue: https://pub.flutter-io.cn

Defcon41
- 41
- 4
-
Surprisingy, this worked for me. But just wondering why ".cn"? Isn't there a global repository url available? – Prasannjeet Singh Feb 10 '23 at 01:02