13

It's really frustrating, wasted 3 days to get rid of but still on stuck problem showing on macos catalina version 10.15.1 and windows 7 also. My two PC's showing same error. First when i tried to 'get packages'

it's showing this '/Users/mamun/Developer/flutter/bin/flutter --no-color packages get Waiting for another flutter command to release the startup lock...'

after few moments it's showing..

'/Users/mamun/Developer/flutter/bin/flutter --no-color packages get Running "flutter pub get" in flutterx...
Connection terminated during handshake

pub get failed (server unavailable) -- attempting retry 1 in 1 second...

Connection terminated during handshake

pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...,

tried this Waiting for another flutter command to release the startup lock

& https://github.com/dart-lang/pub/issues/1729 also.

Al Mamun
  • 630
  • 2
  • 8
  • 21

7 Answers7

19

This is a country-specific problem. In some countries, you got this error like Bangladesh and some African countries. I got a solution to this problem, that is use VPN software when you want to get Packages. VPN software uses other country's IP addresses where this google service works perfectly, So you can easily download packages.

Md.Tarikul Islam
  • 1,241
  • 1
  • 14
  • 16
0

Fixed the issue, my Local Isp blocked pub.dartlang.org that's why it happens.

Al Mamun
  • 630
  • 2
  • 8
  • 21
0

Use vpn. If you are not using not prepackaged packages: stop the process with "ctrl + c" and try it on project location:

flutter pub get --offline

Akbar Pulatov
  • 2,955
  • 2
  • 16
  • 33
0

Use VPN. Or download package from github.

dependencies:
  flutter:
    sdk: flutter

  carousel_pro:
    git:
      url: https://github.com/jlouage/flutter-carousel-pro.git
      ref: master

detailed answer is here:

Akbar Pulatov
  • 2,955
  • 2
  • 16
  • 33
0

Turn on and Off your emulator connection, it will fix it,

-1

I was using Hotspot VPN when I faced this issue. Disabling the hotspot worked for me. You can check by disabling any HotSpot or VPN.

Abeer Iqbal
  • 1,256
  • 10
  • 10
-2

Download the stable version instead of the clone via git:

C:\src>git clone https://github.com/flutter/flutter.git -b stable)
ouflak
  • 2,458
  • 10
  • 44
  • 49
Theo
  • 1