How to solve: Cannot create a project within the Flutter SDK. Target directory 'C:\src\flutter\test_instalasi_flutter' is within the Flutter SDK at 'C:\src\flutter'

Question

Asked by astriefw on January 04, 2022 (source).

[test_instalasi_flutter] flutter create --template app --overwrite . Cannot create a project within the Flutter SDK. Target directory 'C:\src\flutter\test_instalasi_flutter' is within the Flutter SDK at 'C:\src\flutter'. exit code 2

hi! i'm newbie, please help me. when creating a new Flutter in visual studio code, the library folder doesn't show up. But when I create a new Dart library it exists and appears, how do you flutter it ?. thank you

Answer

Question answered by GNassro (source).

Just change your directory different than the FLUTTER SDK directory (don't use this: C:\src\flutter)

DART FLUTTER
SHARE: