Flutter Doctor gives Bad Cpu Type in executable

Viewed 4279

I'm using Mac mini , MacOs monterey and m1 chip. When trying to setup flutter, it is giving error. command: flutter doctor o/p: /Users/admin/Desktop/flutter/bin/internal/shared.sh: line 229: /Users/admin/Desktop/flutter/bin/cache/dart-sdk/bin/dart: Bad CPU type in executable

I have tried below command but it is also not working, Terminal command: sudo softwareupdate --install-rosetta --agree-to-license Terminal output: By using the agreetolicense option, you are agreeing that you have run this tool with the license only option and have read and agreed to the terms. If you do not agree, press CTRL-C and cancel this process immediately. Rosetta 2 update is not available

3 Answers

you have to install rosetta first. In your terminal type:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

run "softwareupdate --install-rosetta" in the terminal

I got this error on MacOs VMware and finaly I realized that i was downloaded the flutter sdk for arm Architecture, but i need this for x64 (intel) Architecture.

Related