# 前置準備 Pre-Preparation

## 介紹

1. 官網  <https://flutter.dev/>
2. Dart 語法基本概念

## 硬體

建議 Mac 記憶體16G以上

## 軟體安裝

### IDE

VS Code Plug-In

![](/files/-MkFjOecjP_KsT0Frw3a)

## 環境檢查

指令

```
 flutter doctor
```

## 環境變數

Flutter SDK Path

Android SDK Path

Java Home Path

## Android 常見問題

### Comand-line tool 未安裝

![](/files/-MkLaHcQhcvW3SBwlQdF)

### 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

&#x20;

![](/files/-MkM5cj4ZMAUN65o3P6z)

### 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\~\~

&#x20;       &#x20;

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://akiyu0924.gitbook.io/flutter/qian-zhi-zhun-bei-prepreparation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
