windows下flutter2.2.3环境搭建
作者:互联网
- 先上几个必上的网站:
- 官网: https://flutter.cn/docs/get-started/install/windows
- 中文资源网(毕竟中文母语,看着轻松): https://flutter.cn
- 实战教程: https://book.flutterchina.club
- 少不了dart: - https://dart.cn
- 选择开发环境: vscode + android studio(必装)
- 官网安装vscode,搜索并安装flutter插件(会自动安装dart插件).
- 官网安装android studio
- 添加flutter\bin目录到环境变量path
- 运行 flutter doctor确保环境都ok,根据提示安装缺少的软件
- 可能遇到的问题:
- Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
解决办法:flutter doctor --android-licenses,一路y同意就ok了. - x Android toolchain - develop for Android devices
设置环境变量ANDROID_HOME到android sdk根目录.
- Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
- 启用桌面版支持
flutter config --enable-windows-desktop - 最后在vscode中通过flutter doctor命令检查一切是否就绪
- 一切就绪,可以hello flutter了
创建项目: Flutter: New Application Project - 选择启动用设备,目前windows上开发支持android,ios,windows,在不同环境中,可以支持全平台:desktop:windows (win32)/windows (uwp)/macos/linux/android/ios/web,牛逼,选择最简单的windows设备调试
完美!
标签:flutter2.2,doctor,windows,dart,https,android,flutter,搭建 来源: https://www.cnblogs.com/ideryi/p/15022406.html