-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after upgrading to 3.7.3 on Intel Mac: This binary was built with the incorrect architecture to run on this machine. #120697
Comments
Same here. Seeing all versions 3.7.0+ on stable channel fail
running the same with the arm package correctly produces:
|
Hi @nausharipov, @kbot |
Hi @huycozy v3.3.2 was the previous working version for me. Running the command returns the error below, because I'm using an Intel Mac, and not Apple Silicon: Version 3.7.0 doesn't work either. I also tried to download the zip file with stable v3.7.3 for Intel Mac from flutter.dev and it returns the same error. |
3.3.10 works for me. And same, I'm on an Intel mac so I can't install rosetta. |
Thanks for the responses. But I can't reproduce this issue from my end with Mac Intel (also tried downgrading and upgrading again). Labeling the issue for further investigation! Kindly /cc @jmagman for thoughts. |
@kbot how did you install Flutter? Is it possible you downloaded the arm64 version of Flutter (to run on Apple Silicon, not Intel Macs) from https://docs.flutter.dev/get-started/install/macos or https://docs.flutter.dev/development/tools/sdk/releases?tab=macos? |
I had originally thought that is what I might have done, so I tested that as well. If I download the arm64 version on an intel I get a simple Can't remember how I originally installed Flutter, but I had been on 2.10.5 for a while. Decided it was time to move to 3+ and ran However, this morning I realized I had vs code & android studio open while I was doing this. So I closed both and tried manually grabbing the latest stable from https://docs.flutter.dev/get-started/install/macos again. Now I'm not seeing the error when running |
Guess it would help to look at the stacktrace 🙂
In @kbot's case it's not complaining about flutter/packages/flutter_tools/lib/src/android/android_studio.dart Lines 452 to 458 in 9944297
@nausharipov I don't see your stack trace so I don't know what executable it was trying to run. That error message should specify it. |
flutter doctor -v:
|
Ah same spot then, running Is it possible you accidentally installed the Apple Silicon version of Android Studio (and therefore the java binary packaged with it)? Like Flutter, they ship the architecture installers separately: |
It is possible. I'll check today. |
My Android Studio version was Application (Universal) Android Studio 2021.1, build AI-211.7628.21.2111.8092744. I reinstalled the recent version of Android Studio, and Flutter 3.7.3 works now. My problem is solved. |
I think I'll close this with my fix to #120942, hopefully that error message is now more actionable and it's clearer that it's a problem running |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Flutter doesn't work on my 2019 Intel MacBook Pro after upgrading to version 3.7.3. Version 3.7.0 doesn't work either.
Steps to Reproduce
MacBook specs:
2,6 GHz 6-Core Intel Core i7
MacOS Ventura 13.0.1 (22A400)
flutter upgrade:
Logs
Logs
flutter doctor -v:
The text was updated successfully, but these errors were encountered: