Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
585 views
in Technique[技术] by (71.8m points)

Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

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 Studio (not installed)

flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.5 18F132, locale en-GB)

[?] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[?] Xcode - develop for iOS and macOS (Xcode 10.3)
[!] Android Studio (not installed)
[?] Connected device (1 available)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In Windows


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

flutter config --android-studio-dir="C:Program FilesAndroidAndroid 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"

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

flutter config --android-studio-dir=/home/myuser/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882

Where ./201.7042822 matches the current version of Android Studio installed. You'll have to check which one you have and update it in the command above.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...