Flutter: X Android license status unknown

Flutter 环境检测问题

资料

  • windows
  • cmd
C:\Users\ajanuw>flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.590], locale zh-CN)
    • Flutter version 1.0.0 at D:\my-tools\flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at D:\my-tools\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\my-tools\Android\Sdk
    • Java binary at: D:\my-tools\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    X Android license status unknown.

[√] Android Studio (version 3.3)
    • Android Studio at D:\my-tools\Android\Android Studio
    • Flutter plugin version 33.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[√] VS Code (version 1.31.1)
    • VS Code at C:\Users\ajanuw\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.23.0

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

C:\Users\ajanuw>D:\my-tools\Android\Sdk\tools\bin\sdkmanager.bat --update
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
...

C:\Users\ajanuw>set SDKMANAGER_OPTS=--add-modules java.se.ee

C:\Users\ajanuw>D:\my-tools\Android\Sdk\tools\bin\sdkmanager.bat --update
Warning: File C:\Users\ajanuw\.android\repositories.cfg could not be loaded.
[=======================================] 100% Computing updates...

C:\Users\ajanuw>flutter doctor --android-licenses
epositories.cfg could not be loaded.
5 of 6 SDK package licenses not accepted. 100% Computing updates...
Review licenses that have not been accepted (y/N)? y

C:\Users\ajanuw>flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.590], locale zh-CN)
    • Flutter version 1.0.0 at D:\my-tools\flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at D:\my-tools\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\my-tools\Android\Sdk
    • Java binary at: D:\my-tools\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.3)
    • Android Studio at D:\my-tools\Android\Android Studio
    • Flutter plugin version 33.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[√] VS Code (version 1.31.1)
    • VS Code at C:\Users\ajanuw\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.23.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.
    原文作者:Ajanuw
    原文地址: https://www.cnblogs.com/ajanuw/p/10407686.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞