Issue
I just tried to execute Flutter:New Project, but it shows error could not find a flutter SDK. I've ensure to complete all of requirements from flutter doctor.
Is there any way to solve this problem ?
Thanks.
Solution
On macOS this was solved by following these steps.
First find where you downloaded the flutter sdk (Can be downloaded from here). It should be in your downloads folder unless you selected somewhere else.
Next:
- Open up Terminal. Run the following command: sudo nano /etc/paths
- Enter your password, when prompted.
- Go to the bottom of the file, and enter the path you wish to add.
- Hit control-x to quit.
- Enter “Y” to save the modified buffer.
If the sdk is downloaded into your Downloads folder, your path to add should be /Users/yourusername/Downloads/flutter/bin
Lastly, quit and restart your terminal windows and VS Code. After restarting, both apps should recognize flutter and running flutter doctor should now work.
Answered By - Casey Schneider


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.