0

I'm creating a new flutter project in Android studio for the first time. I give the project a name and choose Flutter sdk. I then clicked finish and then noting happened. Android studio says that "Flutter create command was unsuccessful" When I navigate to command directory using file explorer, I new folder is created with the project name I've given but it is empty. Please help.

1
  • Does it work if you use flutter create your_project_name? What Flutter version are you using on what OS? Commented Feb 8, 2019 at 17:14

4 Answers 4

2

I don't think you installed flutter correctly. First and foremost, make sure you run flutter doctor from your terminal.

If it doesn't work then you didn't install flutter properly.

If it works, try creating your project via terminal by typing flutter create projectname

Sign up to request clarification or add additional context in comments.

1 Comment

thanks that's true flutter wasn't installed correctly>
1

I hade the same issue in ubuntu first, check flutter doctor and solve the error if there was then check the git installation in my case, I didn't install git

Comments

0

On Windows at least you need to add <flutter_dir>\bin to your path, and then restart Android Studio. It is not clear to me why Android Studio needs to know the location of the Flutter SDK if it doesn't then use that information but... :shrug:

Git also needs to be in the PATH too (as C:\Program Files\Git\cmd); I have always used git-bash just fine without that but now it seems to be a requirement that isn't clearly surfaced when upgrading.

Comments

0

In My case set the flutter sdk path first while create the app and then create the app

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.