当我运行扑动医生时,它呈现了这2个错误,我无法找到克服它们的方法:
C:\Users\Work pc>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [version 10.0.19041.928], locale fr-CH)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
X Cannot execute C:\ProgramData\Oracle\Java\javapath\java.exe to determine the version
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[!] Android Studio
X android-studio-dir = C:\Program
X Android Studio not found at C:\Program
[√] VS Code (version 1.55.2)
[√] Connected device (2 available)
! Doctor found issues in 2 categories.
我主要是在解决第二个问题时遇到困难,与android studio有关。
多谢了!
2条答案
按热度按时间q43xntqr1#
尝试在您的终端
flutter config --android-studio-dir=[path/to/android-studio]
上运行此命令wvmv3b1j2#
尝试在cmd中运行此命令
然后重新启动所有编辑器以加载新设置