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

前端 未结 8 1087
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条回答
  •  Happy的楠姐
    2021-01-02 05:30

    I had a similar issue which I solved by updating my flutter config as follows:

      flutter config --android-sdk="$HOME/Android/Sdk"
      flutter config --android-studio-dir="/usr/local/android-studio"
    

    This was on Ubuntu 20.04.1

    Assumptions:

    • You have extracted the downloaded android studio zip to /usr/local/android-studio

    If you install Android studio using snap then

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

提交回复
热议问题