解决flutter安装时报的几种错误

1.Android license status unknown.
执行

 flutter doctor --android-licenses

2.An error occurred during installation: Failed to move away or delete existing target file: C:aplicationSDKtools
安装as的sdk即可,https://www.androiddevtools.cn/

3.Unable to locate Android SDK.
添加用户的环境变量ANDROID_HOME,把你SDK的位置填上,重启电脑即可
如图:https://img.hxyxyz.top/images/2019/12/16/20180310094007190.png

4. Flutter plugin not installed; this adds Flutter specific functionality.
Dart plugin not installed; this adds Dart specific functionality.

在as中安装Flutter和Dart插件两个插件。

Flutter插件: 支持Flutter开发工作流 (运行、调试、热重载等).
Dart插件: 提供代码分析 (输入代码时进行验证、代码补全等).

启动Android Studio.
打开插件首选项 (Preferences>Plugins on macOS, File>Settings>Plugins on Windows & Linux).
选择 Browse repositories…, 选择 Flutter 插件并点击 install.
重启Android Studio后插件生效.

hxy

hxy

秦 夏

留下你的评论

快留下你的小秘密吧