Flutter Mac上使用VSCode支持Flutter开发,android电话面试技巧

本文介绍了在Mac上使用VSCode配置Flutter开发环境的步骤,包括Flutter的下载、安装过程和环境检查。同时,文章提到了Android电话面试的一些技巧,强调了确保所有必要的开发工具和软件都正确安装和配置的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Global options:

-h, --help Print this usage information.

如果安装成功之后, 还是需要使用 【方法二】 中的 $ flutter doctor 命令,检查开发环境。

方法二(推荐使用该方式)

$ flutter doctor

如果出现下面这样的页面,表示你Flutter还没下载,正在下载Flutter,文章上面的下载可以理解为是安装工具,现在才是正式安装:

MacBook-Pro:~ MacBook-Pro$ flutter doctor

Downloading Dart SDK from Flutter engine 52c7a1e849a170be4b2b2fe34142ca2c0a6fea1f…

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 120M 100 120M 0 0 9310k 0 0:00:13 0:00:13 --:–:-- 10.3M

下载完成之后,就会开始安装:

MacBook-Pro:~ MacBook-Pro$ flutter doctor

Downloading Dart SDK from Flutter engine 52c7a1e849a170be4b2b2fe34142ca2c0a6fea1f…

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 120M 100 120M 0 0 9310k 0 0:00:13 0:00:13 --:–:-- 10.3M

Building flutter tool…

╔════════════════════════════════════════════════════════════════════════════╗

║ Welcome to Flutter! - https://flutter.dev ║

║ ║

║ The Flutter tool anonymously reports feature usage statistics and crash ║

║ reports to Google in order to help Google contribute improvements to ║

║ Flutter over time. ║

║ ║

║ Read about data we send with crash reports: ║

║ https://github.com/flutter/flutter/wiki/Flutter-CLI-crash-reporting ║

║ ║

║ See Google’s privacy policy: ║

║ https://www.google.com/intl/en/policies/privacy/ ║

║ ║

║ Use “flutter config --no-analytics” to disable analytics and crash ║

║ reporting. ║

╚════════════════════════════════════════════════════════════════════════════╝

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

Downloading Material fonts… 1.1s

Downloading android-arm-profile/darwin-x64 tools… 0.7s

Downloading xxx

安装完成之后,就会继续执行上面因为下载中断的 $ flutter doctor 命令, 打印检查结果:

MacBook-Pro:~ MacBook-Pro$ flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E227, locale zh-Hans-CN)

[✗] Android toolchain - develop for Android devices

✗ Unable to locate Android SDK.

Install Android Studio from: https://developer.android.com/studio/index.html

On first launch

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值