Repository: flutter
Issue: Remote host closed connection during handshake
Labels: c: crash,tool,t: gradle,P2,team-tool,triaged-tool

This exception is raised when I'm trying to run `flutter build apk` and it is raised when the command line is trying to access `https://storage.googleapis.com` for some files.

**Things I have tried :-**

- Setup the chinese mirror to see if that resolves the issue but the command line still tries to access `https://storage.googleapis.com` and thus fails. 
- Used a VPN and that results in a successful build.
- Tried accessing the link with browser which is also successful.
- Ran
`curl -G https://storage.googleapis.com/download.flutter.io/io/flutter/arm64_v8a_release/1.0.0- 
beb8a7ec48f6b980a778d19eeda613635c3897c9/arm64_v8a_release-1.0.0- 
beb8a7ec48f6b980a778d19eeda613635c3897c9.pom`
*for which I got the response:*
    `curl: (35) schannel: failed to receive handshake, SSL/TLS connection failed`

I should mention that I'm from Bangladesh and it is in my knowledge that somewhere along the chain some kind of misconfiguration is messing with access to `https://storage.googleapis.com`. However I can definitely access `https://storage.googleapis.com` with my browser **and** download the files as well. 

e.g :- 
( There are multiple lines of the same format. A link followed by issue title. )
```bash
> Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/arm64_v8a_release/1.0.0-beb8a7ec48f6b980a778d19eeda613635c3897c9/arm64_v8a_release-1.0.0-beb8a7ec48f6b980a778d19eeda613635c3897c9.pom'.
    > Remote host closed connection during handshake
```

Output for `flutter doctor -v` :-
```
[√] Flutter (Channel dev, v1.18.0-dev.5.0, on Microsoft Windows [Version 10.0.18362.720], locale en-US)
    • Flutter version 1.18.0-dev.5.0 at G:\flutter
    • Framework revision 7f56b53de4 (3 days ago), 2020-04-12 12:00:01 -0400
    • Engine revision beb8a7ec48
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 89b0f67261)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\Mushfiqur Rahman\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: G:\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.6)
    • Android Studio at G:\Android\Android Studio
    • Flutter plugin version 45.0.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] VS Code
    • VS Code at C:\Users\Mushfiqur Rahman\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.9.1

[√] Connected device (3 available)
    • Redmi Note 5 Pro • 192.168.1.161:5555 • android-arm64  • Android 9 (API 28)
    • Chrome           • chrome             • web-javascript • Google Chrome 80.0.3987.163
    • Web Server       • web-server         • web-javascript • Flutter Tools

• No issues found!
```