Ubuntu19 builds Flutter development environment: 3. Install Flutter and Dart plugins for Android Studio

 In the previous article, we have installed Android Studio and Flutter software ontology on Ubuntu 19. Then run flutter doctor to help check whether the flutter operating environment meets the needs:

$ flutter doctor

Print information:


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.

This shows that we need to install Flutter and Dart plugins on Android Studio. This is relatively simple, search and download dart and flutter respectively in configure -> plugins.

After installing the plug-in, re-run Android Studio. Execute flutter doctor again

$ 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.

At this point, we are only one step away: plug in the Android phone...

Guess you like

Origin blog.csdn.net/qq_27158179/article/details/91050043