Flutter踩坑指南-环境配置常见问题

flutterSdk下载地址:

Install | Flutter

bug1:运行 flutter doctor,Android toolchain问题

Flutter踩坑指南-环境配置常见问题_第1张图片

解决方法:

X cmdline-tools component is missing Run `path/to/sdkmanager --install “cmdline-tools;latest“`_小李爱吃热干面的博客-CSDN博客

bug2:Because flutter01 depends on flutter_lints any which doesn't exist...

Flutter踩坑指南-环境配置常见问题_第2张图片

Because flutter01 depends on flutter_lints any which doesn't exist (could not find package flutter_lints in cache), version solving failed.

Try again without --offline!

pub get failed (69; Try again without --offline!)

原因:镜像地址配置不正确

解决方式:1.3 搭建Flutter开发环境 | 《Flutter实战·第二版》

Flutter踩坑指南-环境配置常见问题_第3张图片

Flutter踩坑指南-环境配置常见问题_第4张图片

Flutter踩坑指南-环境配置常见问题_第5张图片

你可能感兴趣的:(Flutter,flutter,android,android,studio)