所以我尝试在没有 Android Studio 的情况下安装 flutter,因为每当我尝试打开 Android Studio 时,我的电脑运行速度非常慢。一开始一切都很顺利,但是当 flutter 尝试使用 Android 许可证时
flutter doctor --android-licenses
Run Code Online (Sandbox Code Playgroud)
它总是给我
C:\Windows\System32>flutter doctor --android-licenses
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to
resolve this.
Run Code Online (Sandbox Code Playgroud)
当我检查使用时
flutter doctor --android-licenses -v
Run Code Online (Sandbox Code Playgroud)
它给我
C:\Windows\System32>flutter doctor --android-licenses -v
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to
resolve this.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 AndroidLicenseValidator.runLicenseManager (package:flutter_tools/src/android/android_workflow.dart:422:7)
#2 Doctor.diagnose (package:flutter_tools/src/doctor.dart:295:38)
#3 DoctorCommand.runCommand …Run Code Online (Sandbox Code Playgroud)