【发布时间】:2022-01-11 12:46:34
【问题描述】:
我是 Flutter 新手,我正在尝试在 Windows 11 上构建一个 Flutter 环境,但是当我输入 Flutter Doctor 即使我有 android Studio 时,我也会收到如下错误。如果有人能告诉我发生了什么,我将不胜感激!
PS C:\> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale ja-JP)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[!] Android Studio
✗ android-studio-dir = C:\Program Files\Android\Android Studio
✗ Unable to find bundled Java version.
[✓] VS Code (version 1.62.3)
[✓] Connected device (2 available)
【问题讨论】:
-
你在哪里安装了android studio?因为它在那里明确说明它应该在程序文件中
标签: flutter