4

i installed all SDK and plugin
when i create flutter project, it alert error that is

error create project: Could not find an option named "platforms". Run 'flutter -h' (or 'flutter -h') for available flutter commands and options.

and there is appear add configuration.

like this image

5
  • do you see Indexing or Gradle build something at the bottom? Commented Mar 7, 2021 at 15:31
  • Did you try it by cmd ? Commented Mar 7, 2021 at 15:36
  • I don't see anything else .just this problem > Commented Mar 7, 2021 at 15:36
  • when i create project from cmd it run without any problem Commented Mar 7, 2021 at 15:49
  • Can you add to question result of flutter doctor command from command line? Commented Mar 7, 2021 at 16:17

2 Answers 2

7

In android studio terminal type flutter upgrade -f. After the upgrade, create a new flutter project.

More details here

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

1 Comment

Solved the issue for me. Should be tagged as the good answer. Thanks, really helped!
0

Got this error as well, to fix I did the flutter upgrade -f, and upgraded my Android Studio to the latest version.

1 Comment

Heads up! Your answer is not a complete solution to this question. When this occurs, you must enter it as a comment.

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.