Running "flutter pub get" in myapp... (This is taking an unexpectedly long time.)

2,651

Solution 1

Seems the problem is related to ISPs, you can check here and here.

you can walkaround the problem, see:

Connection terminated during handshake flutter

Solution 2

Once you downloaded Flutter sdk ,Please add your flutter tool to your path Check here to update your path. Then you can run "flutter doctor" from Terminal to check everything fine,still if you face any problem,post here i will help you

Share:
2,651
Akbar Pulatov
Author by

Akbar Pulatov

Engineer of Embedded Systems

Updated on December 22, 2022

Comments

  • Akbar Pulatov
    Akbar Pulatov over 1 year

    Steps to Reproduce Download the flutter 1.17.5-stable, unzip to ~/development/tools install XCode, Android Studio

    flutter create myapp
    

    This issue is very similar, but was closed with hesitation without knowing the cause of problem. And also here.

    flutter pub get --verbose
    

    And:

    flutter doctor -v
    

    [✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.6 19G73, locale en-US) • Flutter version 1.17.5 at /Users/akbarpulatov/Development/tools/flutter • Framework revision 8af6b2f038 (3 weeks ago), 2020-06-30 12:53:55 -0700 • Engine revision ee76268252 • Dart version 2.8.4

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1) • Android SDK at /Users/akbarpulatov/Library/Android/sdk • Platform android-30, build-tools 30.0.1 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 11.6) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.6, Build version 11E708 • CocoaPods version 1.9.3

    [✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 47.1.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

    [✓] VS Code (version 1.47.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.12.2

    [✓] Connected device (1 available) • iPhone SE (2nd generation) • 425DB4B1-5727-4CEA-98EA-95C24EE81C30 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)

    • No issues found!

  • Akbar Pulatov
    Akbar Pulatov over 3 years
    I added it, you can check the question.