Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从 0 搭建 Flutter 开发环境 #51

Open
liangbus opened this issue Jun 15, 2020 · 0 comments
Open

从 0 搭建 Flutter 开发环境 #51

liangbus opened this issue Jun 15, 2020 · 0 comments

Comments

@liangbus
Copy link
Owner

liangbus commented Jun 15, 2020

众所周知,flutter 是 Google 的亲儿子,然而 Google 在国内需要科学手段才可以连接,有梯子当然好,针对没有科学上网法的,参考本文的步骤,也能一一解决。

下载 Flutter SDK

官方的 sdk 需要科学上网法才可以 download,所以这里直接就提供资源

Mac OS 版本
Windows 版本

下载完成后解压得到 flutter 目录,这个就是 flutter sdk 的根目录,其中里面有个 bin 目录,放的是 flutter 命令执行文件,我们需要将这个文件夹添加到环境变量中(PATH 属性)

Windows
E:\flutter\bin

Mac OS

附修改环境变量方法:
Win:资源管理器 - 右击【我的/此电脑】- 属性 - 高级系统设置 - 环境变量
Mac:使用编辑器打开 ~/.bash_profile 文件,在 PATH 变量后追加 export PATH=${PATH}:/Users/xxx/flutter/bin (注意改成自己电脑 sdk 的路径)

参考:
flutter 环境搭建

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant