将Android Studio升级到Electric Eel后,我在Windows上遇到了这个问题。flutter doctor
返回:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.1105], locale en-US)
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.3)
X The current Visual Studio installation is incomplete. Please reinstall Visual Studio.
[!] Android Studio (version 2022.1)
X Unable to find bundled Java version.
[√] VS Code (version 1.74.3)
[√] Connected device (4 available)
[√] HTTP Host Availability
! Doctor found issues in 2 categories.
我尝试过添加JAVA_HOME类型的解决方案,但没有成功。
1条答案
按热度按时间bejyjqdl1#
我今天更新Android Studio后遇到了这个问题,并在这里找到了答案:
https://github.com/flutter/flutter/issues/118502
解决方案基本上是:
1.转到AndroidStudio文件夹(在Windows中通常为
C:\Program Files\Android\Android Studio
)1.复制jbr的内容并粘贴到jre文件夹中