• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Flutter环境配置

武飞扬头像
showMeizi
帮助4

一,Flutter环境配置

1,flutter环境配置
https://flutter.cn/docs/get-started/install/windows
点击下方的安装包,获取 stable 发行通道的 Flutter SDK 最新版本:

在开始菜单的搜索功能键入「env」,然后选择 编辑系统环境变量。

在 用户变量 一栏中,检查是否有 Path 这个条目:

如果存在这个条目,以 ; 分隔已有的内容,加入 flutter\bin 目录的完整路径。

2,检查dart
where flutter dart
在Flutter安装目录的flutter文件下找到flutter_console.bat,双击运行并启动flutter命令行,接下来,你就可以在Flutter命令行运行flutter命令了

3,检查flutter是否安装成功
flutter doctor

4,安装Android Studio 编辑器
下载并安装 Android Studio,下载地址:https://developer.android.com/studio/index.html 。
启动Android Studio,然后执行“Android Studio安装向导”。这将安装最新的Android SDK, Android SDK Platform-Tools 以及 Android SDK Build-Tools构建工具,这些是用Flutter进行Android开发所需要的。

5,android-licenses证书
flutter doctor --android-licenses
https://blog.csdn.net/qq_41885673/article/details/123698020

6,配置谷歌浏览器环境变量
https://blog.csdn.net/qq_43336158/article/details/122559686

7,dart直接在 Android Studio中下载插件

8,配置 Android 设备
在 Android 设备上运行或测试 Flutter 应用之前,你需要一个运行 Android 4.1(API 版本 16)或者更高的设备。

在设备上打开 Developer options 和 USB debugging 选项,你可以在 Android documentation 上查看更详细的方法介绍。

如果是在 Windows 平台上使用,需要安装 Google USB Driver

在命令行中,使用 flutter devices 命令来确保 Flutter 能够识别出你所连接的 Android 设备。
 

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhfhfekf
系列文章
更多 icon
同类精品
更多 icon
继续加载