gpt4 book ai didi

java - 尝试重新安装或更新您的 Android SDK Manager

转载 作者:行者123 更新时间:2023-12-02 08:49:41 26 4
gpt4 key购买 nike

我正在尝试安装 Flutter Enviroment,当我使用此命令时发现此错误:

[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.720], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
instructions.
[√] Android Studio (version 3.6)
[√] VS Code (version 1.43.1)
[!] Connected device
! No devices available

所以当我使用 flutter doctor --android-licenses 时,我也发现了这个错误:

A newer version of the Android SDK is required. To update, run:
C:\Users\DELL\AppData\Local\Android\Sdk\tools\bin\sdkmanager --update

当我尝试运行此命令C:\Users\DELL\AppData\Local\Android\Sdk\tools\bin\sdkmanager --update时,我发现了此错误:

Error: Could not find or load main class '-XX:+IgnoreUnrecognizedVMOptions
Caused by: java.lang.ClassNotFoundException: '-XX:+IgnoreUnrecognizedVMOptions

所以任何人都知道如何解决这个问题

最佳答案

转到目录C:\Users\DELL\AppData\Local\Android\Sdk\tools\bin\然后写入命令:

sdkmanager --update

之后,运行:

flutter doctor --android-licenses

关于java - 尝试重新安装或更新您的 Android SDK Manager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60863285/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com