Reputation: 59
When I try to create a new application in android studio, it asks for the SDK. When I give the SDK, it shows "the flutter SDK installation is incomplete". Please help me out with this. I've attached the screenshot. Thanks in advance.
Upvotes: 2
Views: 14994
Reputation: 7
I had the same issue and I didn't found any solution even on stackoverflow. what I did was I just removed the sdk and its path variable and downloaded the new version of sdk. worked for me C:\src\flutter\flutter.
Upvotes: 1
Reputation: 5944
This is solution for windows. You need this steps:
1.Run cmd(as administrator) and command cd in to your flutter directory(not flutter/bin )
2.Run flutter doctor in console. you may have to wait a while - this will download dependencies.
Upvotes: 0
Reputation: 37
Download "flutter_windows_1.22.6-stable.zip" from https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_1.22.6-stable.zip.
Extract files.
Turn on a VPN (ex: Hotspot Shield).
Click right-click on "Extracted files: flutter\bin\dart.bat > Run as administrator.
Wait for downloading.
Go to edit variables (This PC > properties > Advanced system settings > Advanced > Environment Variables).
Edit (create if not exist) Path variable to "Extracted files: flutter\bin" then click ok.
Download and install Git from https://git-scm.com/download/win.
Open cmd, write "flutter", wait to download.
Write "flutter doctor" in cmd, and solve all the problems they pose.
Upvotes: 0
Reputation: 113
Upvotes: 11