An easy way to setup your Flutter development environment on M1 macs (And also on other platforms). ;)
to an easy setup your M1 based mac really for Flutter development!
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!
Python and shellscript option installer
Flutter
Android Studio
Visual Studio Code
wget, git, tar
python3 fdev-linux.py
python3 fdev-macos.py
chmod -x fdev-linux.sh
./fdev-linux.sh
Thanks to: marcusedu