如何修复未安装的颤振医生错误android studio和IntelliJ IDEA,即使我已经安装了它

Posted

技术标签:

【中文标题】如何修复未安装的颤振医生错误android studio和IntelliJ IDEA,即使我已经安装了它【英文标题】:How to fix flutter doctor error android studio not installed, and IntelliJ IDEA, even though I've installed it already 【发布时间】:2021-11-06 01:16:54 【问题描述】:

我是学习 Flutter 的初学者。我已经安装了 android Studio 和颤振。我在 Windows Powershell 上运行了命令 flutter --version,我收到的输出是 Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision f4abaa0735 (2 months ago) • 2021-07-01 12:46:11 -0700 Engine • revision 241c87ad80 Tools • Dart 2.13.4 我运行的下一个命令是flutter doctor,我收到的输出为:

    Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19041.1165], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    X Cannot execute C:\Users\lenovo\IntelliJ IDEA Community Edition 2021.1\bin\java to determine the version
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[!] Android Studio (not installed)
[√] Connected device (3 available)

! Doctor found issues in 3 categories.

谁能帮我解决这个问题?

【问题讨论】:

【参考方案1】:

我在 Windows 上遇到了同样的问题。对我来说,这似乎不会在 Linux (Ubuntu) 上发生。 但这是一个你可以忽略的警告。即使 Flutter Doctor 无法识别 Android Studio,如果其他一切都设置好了,您仍然可以在 Android Studio 中使用它。

【讨论】:

以上是关于如何修复未安装的颤振医生错误android studio和IntelliJ IDEA,即使我已经安装了它的主要内容,如果未能解决你的问题,请参考以下文章

如何修复颤振医生不识别安卓手机

[tag][!] Android Studio(未安装)[tag],在 PC 上运行颤振医生时出错

颤振医生 --android-licenses 显示错误消息

颤振医生 --android-licenses 错误,如何解决这个问题?

颤振医生 --android-licenses 错误:无法找到或加载主类 Studio

如何在颤振中修复“Android许可证状态未知”