Flutter create command was unsuccessful error

Viewed 16154

I'm creating a new flutter project in Android studio. I give the project a name and choose Flutter application. I then clicked finish and then nothing happened. Android studio says that

"Flutter create command was unsuccessful"

When I navigate to command directory using file explorer, a new folder is created with the project name I've given but it is empty.

Please help.

6 Answers

A simple Android Studio restart did the trick for me

I've solution to this problem now. After running flutter doctor --android-licenses I got to know that I need to update my sdkManager.

Then I went to that directory using

cd C:\Users\[user-name]\AppData\Local\Android\Sdk\tools\bin

and run sdkmanager --update

Then I restarted the Android Studio and tried creating flutter project.

It worked.

check your FLUTTER SDK path of the project (android studio: file -> settings -> Language & framework -> flutter -> flutter sdk path) . Or execute flutter doctor command in flutter consol.(This worked for me)

please install all the dependencies that flutter wants Operating Systems: Linux (64-bit) Disk Space: 600 MB (does not include disk space for IDE/tools). Tools: Flutter depends on these command-line tools being available in your environment. *bash *curl *file *git 2.x *mkdir *rm *unzip *which *xz-utils *zip Shared libraries: Flutter *test command depends on this library being available in your environment. libGLU.so.1 - provided by mesa packages such as libglu1-mesa on Ubuntu/Debian and mesa-libGLU on Fedora

Look at Flutter sdk path while Creating the Project.

$ C:\flutter 

If your Flutter SDK is updated and the path is right you will get a solution.

  1. Check your Flutter SDK path.
  2. Check the package name. It must be in lower case.
  3. Restart your IDE and check again.
Related