0

When I use Android studio to create a new flutter project, the following error occurs:Multiple output directories specified.Try moving --org to be immediately following create.

Project configuration Image

Error message Image

The running result of flutter doctor is as follows, the operating system is mac.

flutter doctor Image

7
  • did you try to create it in a different location? Commented Jul 6, 2021 at 7:20
  • After changing the project directory, the same problem still occurs. Commented Jul 6, 2021 at 11:48
  • Please complete the xcode setup first as flutter doctor says. Then check again. Commented Jul 6, 2021 at 16:58
  • It still doesn't work. Commented Jul 7, 2021 at 8:13
  • Can you post the error message now? After flutter doctor executes successfully. Commented Jul 7, 2021 at 8:15

1 Answer 1

1

After searching, I think it's an error in your Android Studio's create command. Try this in your command line

flutter create --org com.yourdomain your_app_name 

If this works, then my assumption is right. From your error message, it is saying that --org should be after create. I found a similar issue in Github. A clean installation may solve the issue then.

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

2 Comments

Thanks for your advice. I can successfully create a flutter project using the command line. After Android studio import the project, I can start programming. It is not convenient to reinstall Android studio at the moment, and I will try it later.
Great to hear. Please mark the answer as accepted then.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.