Flutter: How to install Flutter and its required SDK elements in Apple M1 Chip?

3,341

Solution 1

I own M1 chip for at least 2 months. I have no issues with flutter (but notice it works with Rosetta2). I don't know what you're doing wrong but I just installed the last stable version (2.2.3) from here and have no problems.

Also Dart SDK beta is compatible with M1 chip. But need to check if any flutter beta is working with it.

And Android Studio stable is compatible with M1 chip, but please make sure you download (64-bit, ARM) option. Embedded in android studio emulator is ready for M1 and it works well for API 30+.

So... I can confirm that there are no more issues with flutter on M1 than on intel's machine. And I'm a bit confused about your question because it was an easy installation.

Solution 2

I also purchased the Macbook M1. I face many errors but the major/biggest of them is to isntall separate android emulator. Here you can find it. https://github.com/741g/android-emulator-m1-preview/releases

remaining JAVA, FLUTTER SDK are same but in installing and running the project on xcode you might face some problem in installing the Coca-PODs.

Solution 3

M1 owner here. I can't even install a flutter path and flutter onto the machine. Brew installations, various youtube tutorials, official flutter tutorials/githubs ain't helping.

m1 and flutter are very messed up currently just 'starting' is impossible for some people (hundreds of comments on youtube).

currently lost what to do. Perhaps sell m1 for an older machine that actually can run flutter.

Update: made a tutorial how to set up flutter on m1 chip https://www.youtube.com/watch?v=xWB4htZWDTg&t=18s

Share:
3,341
PeakGen
Author by

PeakGen

CTO

Updated on December 30, 2022

Comments

  • PeakGen
    PeakGen over 1 year

    I purchased a new Apple MacBook Pro, M1 Chip laptop. Mainly for Flutter programming, for both Android and iOS. After installing OpenJDK, I realised it is not supported in M1 chip because it was for Intel chip. So had to shift to Azul OpenJDK.

    More browsing showed me that a proper Android emulator is not there yet, Google Maps does not work on iOS simulator yet, and so on. Instead of looking solutions for issues SDK by SDK or Tool by Tool, it is best to have a proper guide to setup the Flutter development base in M1.

    Can someone list down the step by step instructions for setting up Flutter base in Apple M1 Chip, which includes Java, Android Studio, Flutter and XCode?