0

我是学习颤振的初学者。我已经安装了 Android Studio 和颤振。我flutter --version在 Windows Powershell 上运行了命令,我收到的输出是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.

谁能帮我解决这个问题?

4

1 回答 1

0

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

于 2021-09-09T12:20:21.543 回答