1. 在MacOS上搭建Flutter开发环境
1.1. 问题记录
1.1.1. 下载地址错误
在下载fultter的时候,需要下载macOS下的x64,而不是arm64。如果使用了错误的CPU架构类型,运行flutter命令,flutter会提示CPU不支持的信息。
1.1.2. 命令行没有翻墙
如果没有翻墙,会导致以下两个错误:
HTTP Host availability check is taking a long time...[!] HTTP Host Availability
✗ HTTP host "https://maven.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host: Operation timed out
✗ HTTP host "https://cloud.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host: Operation timed out