Android许可证状态未知。尝试重新安装或更新您的Android SDK Manager。找不到Android sdkmanager工具

时间:2020-09-03 04:58:39

标签: android flutter android-sdk-manager

我第一次在Windows 10上安装Android SDK。sdkmanager工具面临问题。查找了多个线程以寻求解决方案,但无济于事。

C:\Users\vboppa>flutter doctor -v

[√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.18363.959], locale en-US)
    • Flutter version 1.20.2 at C:\Boppa\myStuff\flutter
    • Framework revision bbfbf1770c (3 weeks ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\vboppa\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    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/docs/get-started/install/windows#android-setup for detailed instructions.

[!] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

当我尝试验证Android许可证时,输出如下。

C:\Users\vboppa>flutter doctor --android-licenses

Android sdkmanager tool not found (C:\Users\vboppa\AppData\Local\Android\sdk\tools\bin\sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.

1 个答案:

答案 0 :(得分:0)

您需要安装Android Studio

Flutter文档https://flutter.dev/docs/get-started/install/windows#android-setup中的引言

Flutter依赖于完整安装的Android Studio来提供其Android平台依赖项