- Chip: Apple
- Version: MacOS Monterey
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"'
eval "$(/opt/homebrew/bin/brew shellenv)"
brew tap leoafarias/fvm
brew install fvm
fvm install flutter_version
eg: fvm install 1.22.6
fvm global flutter_version
eg: fvm global 1.22.6
brew install java
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
1. Go to the: Preferences -> Appearance & Behavio -> System Settings -> Android SDK
-> Click tab SDK Tools -> click “Android SDK Command-line Tools” and “Android SDK Build-Tools”
-> Apply (wait install) -> OK.
2. Go to the: Preferences -> Plugins: search and install “Dart”, “Flutter”, “Flutter Intl”.
3. Restart AS.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
sudo xcodebuild -license
sudo gem install cocoapods
brew install cocoapods
nano .zshrc
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="$PATH":"$HOME/.pub-cache/bin"
export PATH="$PATH":"$HOME/fvm/default/bin"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"
source .zshrc
flutter doctor
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
flutter doctor --android-licenses
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
\android\gradle\wrapper\gradle-wrapper.properties
https://services.gradle.org/distributions
https://services.gradle.org/distributions