to an easy setup your M1 based mac really for Flutter development!
- install git / xcode command line tool
- install flutter stable version
- install rosetta
- install home brew (recommended)
- update git for lastest (Void flutter xcrun issue)
- install cocoapods and M1 dependences
- set flutter to PATH
- install android studio
- set xcode configs (if it's installed)
Package | Version | Description | Path |
---|---|---|---|
build-tools;28.0.3 | 28.0.3 | Android SDK Build-Tools 28.0.3 | build-tools/28.0.3 |
build-tools;29.0.2 | 29.0.2 | Android SDK Build-Tools 29.0.2 | build-tools/29.0.2 |
build-tools;30.0.3 | 30.0.3 | Android SDK Build-Tools 30.0.3 | build-tools/30.0.3 |
cmdline-tools;latest | 5.0 | Android SDK Command-line Tools (latest) | cmdline-tools/latest |
emulator | 30.8.4 | Android Emulator | emulator |
ndk;22.1.7171670 | 22.1.7171670 | NDK (Side by side) 22.1.7171670 | ndk/22.1.7171670 |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4 |
platform-tools | 31.0.3 | Android SDK Platform-Tools | platform-tools |
platforms;android-28 | 6 | Android SDK Platform 28 | platforms/android-28 |
platforms;android-30 | 3 | Android SDK Platform 30 | platforms/android-30 |
run this command on terminal: (Silicon only, for other platform see below)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/allansrc/fdev_silicon/master/platforms/macOS-silicon/flutter-dev-setup-silicon.sh)"
For those are on macOS 12 (Monterey) Android Studio won't work good or just not work.
I found a solution for that. Just add the studio.vmoptions
file on /Users/<User Name>/Library/Application Support/Google/<Android Studio Version>/
.
This file is avaliable on files_fixes folder here. For details about this file and others VM options and the issue see links bellow:
Stay tune ;) thx!
- run the fdev-win.bat file as Admin
- run the fdev-win-android-s.bat file as Adm
- Install chocolatey
- Install Git
- Download Flutter SDK
- add Flutter to ENV. PATH
- Download Dart SDK
- Android Studio
Python and shellscript option installer
-
Flutter
-
Android Studio
-
Visual Studio Code
-
wget, git, tar
- run the proper installer for your distro. i.e:
python3 fdev-linux.py
- run the installer file. i.e:
python3 fdev-macos.py
- make the fdev-linux.sh file runnable,
chmod -x fdev-linux.sh
- then run the file .sh to installs
./fdev-linux.sh
Thanks to: marcusedu