-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Description
When I try to start a new Flutter Project I get this error:
Could not find a Flutter SDK. Please ensure flutter is installed and in your PATH (you may need to restart).
From command line which flutter gives /snap/bin/flutter which points to /usr/bin/snap* (which is not a symlink). I can also run flutter through
/snap/flutter/current/flutter.sh.
Locate SDK does not work for me. I navigate to /snap/bin and press Set Flutter SDK folder and get That folder does not appear to be a Flutter SDK. I get the same error from /snap/flutter/current/flutter.sh
Logs from trying to start a new flutter project:
[2:12:51 PM] [General] [Info] Searching for SDKs...
[2:12:51 PM] [General] [Info] Environment PATH:
[2:12:51 PM] [General] [Info] /home/cfujimori/.local/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/lib/bes/gcc-arm-none-eabi-4_9-2014q4/bin/
[2:12:51 PM] [General] [Info] /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
[2:12:51 PM] [General] [Info] /usr/local/bin
[2:12:51 PM] [General] [Info] ...
[2:12:51 PM] [General] [Info] /snap/flutter/current/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/.local/bin/
[2:12:51 PM] [General] [Info] /snap/bin
[2:12:51 PM] [General] [Info] /snap/flutter/current/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/
[2:12:51 PM] [General] [Info] Searching for flutter
[2:12:51 PM] [General] [Info] Looking for flutter in:
[2:12:51 PM] [General] [Info] /home/cfujimori/.local/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/lib/bes/gcc-arm-none-eabi-4_9-2014q4/bin/
[2:12:51 PM] [General] [Info] /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
[2:12:51 PM] [General] [Info] /usr/local/bin
[2:12:51 PM] [General] [Info] ...
[2:12:51 PM] [General] [Info] .../bin
[2:12:51 PM] [General] [Info] /snap/flutter/current/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/.local/bin/
[2:12:51 PM] [General] [Info] /snap/bin
[2:12:51 PM] [General] [Info] /snap/flutter/current/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/
[2:12:51 PM] [General] [Info] Found at:
[2:12:51 PM] [General] [Info] /snap/bin
[2:12:51 PM] [General] [Info] Following symlink: /snap/bin/flutter ==> /usr/bin/snap
[2:12:51 PM] [General] [Info] Candidate paths to be post-filtered:
[2:12:51 PM] [General] [Info] /usr
[2:12:51 PM] [General] [Info] Returning SDK path undefined for flutter
[2:12:51 PM] [General] [Info] Searching for dart
[2:12:51 PM] [General] [Info] Looking for dart in:
[2:12:51 PM] [General] [Info] /home/cfujimori/.local/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/lib/bes/gcc-arm-none-eabi-4_9-2014q4/bin/
[2:12:51 PM] [General] [Info] /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
[2:12:51 PM] [General] [Info] /usr/local/bin
[2:12:51 PM] [General] [Info] ...
[2:12:51 PM] [General] [Info] .../bin
[2:12:51 PM] [General] [Info] /snap/flutter/current/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/.local/bin/
[2:12:51 PM] [General] [Info] /snap/bin
[2:12:51 PM] [General] [Info] /snap/flutter/current/bin
[2:12:51 PM] [General] [Info] /home/cfujimori/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/
[2:12:51 PM] [General] [Info] Found at:
[2:12:51 PM] [General] [Info] Candidate paths to be post-filtered:
[2:12:51 PM] [General] [Info] Returning SDK path undefined for dart
[2:12:51 PM] [General] [Info] !! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!
Dart Code extension: 3.14.1
Flutter extension: 3.14.1 (not activated)
App: Visual Studio Code
Version: 1.47.3
Platform: linux
Workspace type: Unknown (No SDK)
Analyzer type: DAS
Multi-root?: undefined
Dart SDK:
Loc: undefined
Ver: undefined
Flutter SDK:
Loc: undefined
Ver: undefined
HTTP_PROXY: undefined
NO_PROXY: undefined
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels