'Flutter create command was unsuccessful error
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.
Solution 1:[1]
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.
Solution 2:[2]
A simple Android Studio restart did the trick for me
Solution 3:[3]
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)
Solution 4:[4]
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.
Solution 5:[5]
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
Solution 6:[6]
- Check your Flutter SDK path.
- Check the package name. It must be in lower case.
- Restart your IDE and check again.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sushant Somani |
| Solution 2 | nemoryoliver |
| Solution 3 | |
| Solution 4 | Igor F. |
| Solution 5 | Saleque Ahmed |
| Solution 6 |
