Ubuntu19搭建Flutter开发环境:3、为Android Studio安装Flutter和Dart插件

 前文我们已经在Ubuntu19安装了Android Studio和Flutter软件本体。接着运行flutter doctor可以帮忙检查flutter运行环境是否满足需要:

$ flutter doctor

打印信息:


Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[!] Android Studio (version 3.4)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

这说明了我们需要在Android Studio上安装Flutter和Dart插件。这比较简单的,在configure -> plugins里分别搜索与下载dart和flutter。

安装完插件,重新运行Android Studio。再次执行flutter doctor

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_US.UTF-8)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Android Studio (version 3.4)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

至此,我们只差一步了:把安卓手机插上……

猜你喜欢

转载自blog.csdn.net/qq_27158179/article/details/91050043