Android Studio安装Flutter时卡在‘Unzipping Dart SDK’求助
Hey there, I’ve dealt with this exact frustrating issue before—waiting hours for an install to move forward is the worst! Let’s go through actionable fixes to get you past this hang:
Skip the automatic install and set up Flutter SDK manually
This is the most reliable fix I’ve found.- Grab the Flutter SDK zip file for your operating system from the official Flutter download page.
- Unzip it to a permanent location on your machine—something like
~/development/flutter(Mac/Linux) orC:\development\flutter(Windows) works well. - Head back to Android Studio, start creating a new Flutter project, and when prompted for the Flutter SDK path, select "Existing SDK" and point it to the folder you just unzipped.
Troubleshoot your network connection
More often than not, the hang happens because the download gets interrupted by a spotty network or proxy/firewall restrictions:- Switch to a stable, wired internet connection if you’re on Wi-Fi.
- Check if your firewall or antivirus is blocking Android Studio’s download requests—temporarily disable them to test if that’s the issue.
- If you use a proxy, make sure Android Studio has the correct proxy settings configured (go to
File > Settings > Appearance & Behavior > System Settings > HTTP Proxyto verify).
Clear Android Studio’s cache and restart
Corrupted cache can sometimes mess with the installation process:- In Android Studio, go to
File > Invalidate Caches... - Select "Invalidate and Restart" from the popup.
- Once the IDE restarts, try initiating the Flutter SDK install again.
- In Android Studio, go to
Manually unzip the partially downloaded Dart SDK
If the auto-install already downloaded the Dart SDK zip but got stuck unzipping:- Locate the temporary download folder:
- Mac/Linux:
~/.cache/flutter_tool - Windows:
C:\Users\<YourUsername>\.cache\flutter_tool
- Mac/Linux:
- Find the Dart SDK zip file in that folder (it’ll look something like
dart-sdk-<version>-<os>.zip). - Manually unzip it into the
dart-sdksubfolder inside your Flutter SDK directory (replace any existing files if prompted). - Restart Android Studio and try creating your project again.
- Locate the temporary download folder:
内容的提问来源于stack exchange,提问作者Isaac Akindipe

