You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flutter tool depends on urls which are not always available in China #11681
changed the title [-]`flutter` tool depends on sites which are not always available in China[/-][+]`flutter` tool depends on urls which are not always available in China[/+]on Aug 18, 2017
@eseidelGoogle seems flutter like kotlin, blooming in China.
Indeed, another example is eclipse on which same cases occur when updating. The fact depicts no more cares at eclipse.
Maybe flutter's integrality checking should be a loose spec so that let user handle it by himself according to the spec.
It looks like the packages on pub.dartlang.org, though not the website itself, is also blocked in China, which is previously reported here: dart-lang/pub#780
I've asked @mravn-google to take a look at wiring up an alternative download location for wrapper.tgz, which is the most common failure. We're currently investigating options. Until then, workarounds are listed in earlier comments.
If you're following this issue from China, would you please try these instructions about using Flutter in China and let us know if they work for you? When you report your test results, please include your OS and province. Thanks!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
eseidelGoogle commentedon Aug 18, 2017
A common report is that android.googlesource.com is not reachable in China:
http://ping.chinaz.com/android.googlesource.com.
However at least one report: #11674 notes that it's reachable via https from Chrome.
[-]`flutter` tool depends on sites which are not always available in China[/-][+]`flutter` tool depends on urls which are not always available in China[/+]lyrachord commentedon Aug 19, 2017
That the site is accessible in chrome may owes much to its extensions of CDN-url-rewrite like
lishuhao commentedon Aug 20, 2017
@eseidelGoogle
it's reachable via https from ChromeMaybe his chrome use proxy but terminal not use proxy.
phyooos commentedon Aug 21, 2017
@lishuhao You are right.
2.export http_proxy=http://localhost:8123
export https_proxy=http://localhost:8123
OK.!
http://www.jianshu.com/p/32dfb5289cf5
InMatrix commentedon Aug 30, 2017
It appears that Flutter Tools call android.googlesource.com in this file:
flutter/packages/flutter_tools/lib/src/cache.dart
Line 387 in c5999c7
wangliangrc commentedon Sep 20, 2017
A hacky solution: http://blog.csdn.net/xjwangliang/article/details/78042740
eseidelGoogle commentedon Sep 21, 2017
We've now had 7 dupes of this bug, which may be a record. :/
change2hao commentedon Sep 21, 2017
A simple solution:use tunnelbear ,the website:https://www.tunnelbear.com, install it and select UnitedStates. It works
lyrachord commentedon Sep 21, 2017
@eseidelGoogle seems flutter like kotlin, blooming in China.
Indeed, another example is eclipse on which same cases occur when updating. The fact depicts no more cares at eclipse.
Maybe flutter's integrality checking should be a loose spec so that let user handle it by himself according to the spec.
liyinyin commentedon Sep 21, 2017
@change2hao Thanks,it works!
InMatrix commentedon Sep 21, 2017
To summarize the workaround described in http://blog.csdn.net/xjwangliang/article/details/78042740 in English for the Flutter team, here is what the author did:
0b5c1398d1d04ac245a310de98825cb7b3278e2ain it.InMatrix commentedon Oct 12, 2017
It looks like the packages on pub.dartlang.org, though not the website itself, is also blocked in China, which is previously reported here: dart-lang/pub#780
eseidelGoogle commentedon Nov 17, 2017
I've asked @mravn-google to take a look at wiring up an alternative download location for wrapper.tgz, which is the most common failure. We're currently investigating options. Until then, workarounds are listed in earlier comments.
InMatrix commentedon Dec 10, 2017
If you're following this issue from China, would you please try these instructions about using Flutter in China and let us know if they work for you? When you report your test results, please include your OS and province. Thanks!
lyrachord commentedon Dec 10, 2017
Thanks!
It works fine.
From CQ.
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! Downloading Material fonts... 20.0s Downloading package sky_engine... 17.3s Downloading common tools... 37.2s Downloading windows-x64 tools... 181.9s Downloading windows-x64 tools... 140.7s Downloading android-arm-profile/windows-x64 tools... 6.2s Downloading android-arm-release/windows-x64 tools... 15.5s Downloading android-x86 tools... 32.4s Downloading android-x64 tools... 112.1s Downloading android-arm tools... 37.1s Downloading android-arm-profile tools... 12.9s Downloading android-arm-release tools... 17.6s Downloading Gradle Wrapper... 11.0s [√] Flutter (on Microsoft Windows [Version 10.0.16299.64], locale zh-CN, channel master) • Flutter at D:\dart\flutter • Framework revision 3d2c214da3 (2 minutes ago), 2017-12-11 00:25:03 +0800 • Engine revision edb0201fa2 • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-edge.a38ac7cf127f4611c873c2f2d523c06ce06b1342 [√] Android toolchain - develop for Android devices (Android SDK 27.0.0) • Android SDK at D:\android\SDK • Android NDK at D:\android\SDK\ndk-bundle • Platform android-27, build-tools 27.0.0 • ANDROID_HOME = D:\android\SDK • Java binary at: C:\work\android\3.0\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] Android Studio (version 3.0) • Android Studio at C:\work\android\3.0 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] Android Studio (version 3.0) • Android Studio at C:\work\android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] IntelliJ IDEA Community Edition (version 2017.2) • Flutter plugin version 17.0 • Dart plugin version 172.4155.35 [√] IntelliJ IDEA Community Edition (version 2017.3) • Flutter plugin version 19.1 • Dart plugin version 173.3622.29 [-] Connected devices • NoneBTW it seems there is a typo, x86?
InMatrix commentedon Dec 15, 2017
Thanks for testing. I'm closing this issue, since I've got multiple confirmations.
Download our own copy of gradle wrapper. (flutter#13267)
BytesZero commentedon May 18, 2018
我是这样做的
flutter_gallery/pubspec.yaml
改变 url 为
https://github.com/yy1300326388/gallery-assets-china我会持续更新,并且 commit id 不会变,直接同步的 https://flutter.googlesource.com/gallery-assets/的
rubickecho commentedon Jul 18, 2018
@yy1300326388 Hi, I didn't find
flutter_gallery / pubspec.yamlfrom the file.Can you help me?BytesZero commentedon Jul 19, 2018
@peakcool
https://github.com/flutter/flutter/tree/master/examples/flutter_gallery
github-actions commentedon Aug 16, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.