[tag][!] Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

前端 未结 8 1088
Happy的楠姐
Happy的楠姐 2021-01-02 05:22

When I run flutter doctor command on mac its showing below, while I already install Android Studio, and I can run ios build from Android Studio.

[!] Android

8条回答
  •  旧巷少年郎
    2021-01-02 05:49

    In Windows


    if your Android Studio install by default, you can use this command

    flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
    

    after this command, flutter can found android studio, but the plugin can't...

    flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.18363.1016], locale zh-CN)
    [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    [!] Android Studio
        X Flutter plugin not installed; this adds Flutter specific functionality.
        X Dart plugin not installed; this adds Dart specific functionality.
    [√] VS Code (version 1.48.0)
    [!] Connected device
        ! No devices available
    
    ! Doctor found issues in 2 categories.
    

    In Linux (Ubuntu)


    Note: for those who are facing the problem in Ubuntu and Android Studio is installed with snap:

    flutter config --android-studio-dir="/snap/android-studio/current/android-studio"
    

提交回复
热议问题