Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 484
PeakGen Avatar asked Dec 31 '22 14:12

PeakGen


2 Answers

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.

like image 137
Dmitry Eryshov Avatar answered Jan 02 '23 03:01

Dmitry Eryshov


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.

like image 24
Muhammad Tameem Rafay Avatar answered Jan 02 '23 02:01

Muhammad Tameem Rafay