前置準備 Pre-Preparation

介紹、環境設定與建議

介紹

  1. Dart 語法基本概念

硬體

建議 Mac 記憶體16G以上

軟體安裝

IDE

VS Code Plug-In

環境檢查

指令

 flutter doctor

環境變數

Flutter SDK Path

Android SDK Path

Java Home Path

Android 常見問題

Comand-line tool 未安裝

Android License 未同意

flutter doctor --android-licenses

M1 沒有 Android 模擬器?

https://github.com/google/android-emulator-m1-preview

iOS 常見問題

Signing & Capabilities

Command-line tool

M1 CPU 的模擬器跑不起來??

Build Settings > Excluded Architecttures 加入 i386 , arm64

cocoapods 未安裝或版本太低

sodu gem install cocoapods

設定開啟支援其他平台

flutter config --enable-windows-desktop
flutter config --enable-macos-desktop
flutter config --enable-linux-desktop

開始第一個專案

$ flutter create --org com.company -i swift -a kotlin package_name

跑起來~~

Hello World~~

Last updated

Was this helpful?