Skip to content

flutter tool depends on urls which are not always available in China #11681

Closed

Description

@eseidelGoogle

This is an oft reported problem. Making this meta-bug to coalesce reports.

Activity

  1. eseidelGoogle commented on Aug 18, 2017

    @eseidelGoogle
    ContributorAuthor

    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.

  2. 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
  3. lyrachord commented on Aug 19, 2017

    @lyrachord
    Contributor

    That the site is accessible in chrome may owes much to its extensions of CDN-url-rewrite like

  4. lishuhao commented on Aug 20, 2017

    @lishuhao

    @eseidelGoogle
    it's reachable via https from Chrome
    Maybe his chrome use proxy but terminal not use proxy.

  5. added
    tool
    on Aug 22, 2017
  6. added this to the milestone on Aug 22, 2017
  7. InMatrix commented on Aug 30, 2017

    @InMatrix

    It appears that Flutter Tools call android.googlesource.com in this file:

    final String url = 'https://android.googlesource.com'

  8. eseidelGoogle commented on Sep 21, 2017

    @eseidelGoogle
    ContributorAuthor

    We've now had 7 dupes of this bug, which may be a record. :/

  9. change2hao commented on Sep 21, 2017

    @change2hao

    A simple solution:use tunnelbear ,the website:https://www.tunnelbear.com, install it and select UnitedStates. It works

  10. lyrachord commented on Sep 21, 2017

    @lyrachord
    Contributor

    @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.

  11. liyinyin commented on Sep 21, 2017

    @liyinyin

    @change2hao Thanks,it works!

  12. InMatrix commented on Sep 21, 2017

    @InMatrix

    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:

  13. InMatrix commented on Oct 12, 2017

    @InMatrix

    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

  14. eseidelGoogle commented on Nov 17, 2017

    @eseidelGoogle
    ContributorAuthor

    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.

  15. InMatrix commented on Dec 10, 2017

    @InMatrix

    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!

  16. lyrachord commented on Dec 10, 2017

    @lyrachord
    Contributor

    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
        • None

    BTW it seems there is a typo, x86?

    Downloading windows-x64 tools...                     181.9s
    Downloading windows-x64 tools...                     140.7s
  17. InMatrix commented on Dec 15, 2017

    @InMatrix

    Thanks for testing. I'm closing this issue, since I've got multiple confirmations.

  18. BytesZero commented on May 18, 2018

    @BytesZero

    我是这样做的
    flutter_gallery/pubspec.yaml

    flutter_gallery_assets:
       git:
      #   url: https://flutter.googlesource.com/gallery-assets
         url: https://github.com/yy1300326388/gallery-assets-china

    改变 url 为https://github.com/yy1300326388/gallery-assets-china
    我会持续更新,并且 commit id 不会变,直接同步的 https://flutter.googlesource.com/gallery-assets/的

    看来大家都用的不错,记得点个Star gallery-assets-china

  19. rubickecho commented on Jul 18, 2018

    @rubickecho

    @yy1300326388 Hi, I didn't find flutter_gallery / pubspec.yaml from the file.Can you help me?

  20. github-actions commented on Aug 16, 2021

    @github-actions

    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.

  21. locked as resolved and limited conversation to collaborators on Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions