在Windows 11环境下,我用scoop安装flutter,最后发现了以下问题,我试了网上所有类似问题的解决方案,都没有用,还是同样的错误:
$ flutter doctor -v
[✓] Flutter (Channel stable, 3.3.8, on Microsoft Windows [版本 10.0.22000.1219], locale zh-CN)
• Flutter version 3.3.8 on channel stable at D:\Program_Files\scoop\apps\flutter\current
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800
• Engine revision 857bd6b74c
• Dart version 2.18.4
• DevTools version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at D:\Program_Files\scoop\apps\android-sdk\current
• Platform android-TiramisuPrivacySandbox, build-tools 33.0.1
• ANDROID_HOME = D:\Program_Files\scoop\apps\android-sdk\current
• Java binary at: D:\Program_Files\scoop\apps\openjdk17\current\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.2+8-86)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.1)
• Visual Studio at D:\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33110.190
• Windows 10 SDK version 10.0.22000.0
[!] Android Studio (version 2022.2)
• Android Studio at D:\Program_Files\scoop\apps\android-studio-canary\current
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
• IntelliJ at D:\Program Files\JetBrains\IntelliJ IDEA 2021.2
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] Proxy Configuration
• HTTP_PROXY is set
• NO_PROXY is 127.0.0.1;localhost;::1
• NO_PROXY contains localhost
• NO_PROXY contains ::1
• NO_PROXY contains 127.0.0.1
[✓] Connected device (2 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.22000.1219]
• Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.107
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
如何在我的环境中解决此问题
1条答案
按热度按时间tp5buhyn1#
已经搞定了,卸载Android Studio 和OpenJDK 程序安装OpenJDK 和Android Studio就好了