我试过了所有我找到的东西(GitHub问题,SO问题)。还尝试从Android Studio重新安装Android SDK(29)。
flutter doctor
C:\Users\Zheny>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.693], locale ru-RU) [!] 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.42.1) X Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [!] Connected device ! No devices available ! Doctor found issues in 3 categories.
flutter doctor --android-licenses
Android sdkmanager tool not found (C:\Users\Zheny\AppData\Local\Android\Sdk\tools\bin\sdkmanager). Try re-installing or updating your Android SDK, visit https://flutter.dev/setup/#android-setup for detailed instructions.
flutter doctor -v
C:\Users\Zheny>flutter doctor -v [√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.693], locale ru-RU) • Flutter version 1.12.13+hotfix.8 at C:\Flutter SDK\flutter • Framework revision 0b8abb4724 (2 weeks ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0 [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Users\Zheny\AppData\Local\Android\Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.3 • ANDROID_HOME = C:\Users\Zheny\AppData\Local\Android\Sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) 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) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 44.0.2 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) [!] VS Code (version 1.42.1) • VS Code at C:\Users\Zheny\AppData\Local\Programs\Microsoft VS Code X Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [!] Connected device ! No devices available ! Doctor found issues in 3 categories.
我该怎么解决这个问题?
$ flutter doctor ... [!] Android工具链 - 为Android设备开发(Android SDK版本29.0.3) ✗ Android许可证状态未知。 尝试重新安装或更新您的Android SDK Manager。 请参阅https://developer.android.com/studio/#downloads或访问 https://flutter.dev/setup/#android-setup获取详细说明。 $ flutter doctor --android-licenses 找不到Android sdkmanager工具 ....
- Santi