Flutter: X Android license status unknown

Posted Ajanuw

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter: X Android license status unknown相关的知识,希望对你有一定的参考价值。

Flutter 环境检测问题

资料

  • windows
  • cmd
C:Usersajanuw>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-toolsflutter
    ? 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-toolsAndroidSdk
    ? Android NDK location not configured (optional; useful for native profiling support)
    ? Platform android-28, build-tools 28.0.3
    ? ANDROID_HOME = D:my-toolsAndroidSdk
    ? Java binary at: D:my-toolsAndroidAndroid Studiojreinjava
    ? 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-toolsAndroidAndroid 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:UsersajanuwAppDataLocalProgramsMicrosoft VS Code
    ? Flutter extension version 2.23.0

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

C:Usersajanuw>D:my-toolsAndroidSdk	oolsinsdkmanager.bat --update
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
...

C:Usersajanuw>set SDKMANAGER_OPTS=--add-modules java.se.ee

C:Usersajanuw>D:my-toolsAndroidSdk	oolsinsdkmanager.bat --update
Warning: File C:Usersajanuw.android
epositories.cfg could not be loaded.
[=======================================] 100% Computing updates...

C:Usersajanuw>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:Usersajanuw>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-toolsflutter
    ? 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-toolsAndroidSdk
    ? Android NDK location not configured (optional; useful for native profiling support)
    ? Platform android-28, build-tools 28.0.3
    ? ANDROID_HOME = D:my-toolsAndroidSdk
    ? Java binary at: D:my-toolsAndroidAndroid Studiojreinjava
    ? 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-toolsAndroidAndroid 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:UsersajanuwAppDataLocalProgramsMicrosoft VS Code
    ? Flutter extension version 2.23.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

以上是关于Flutter: X Android license status unknown的主要内容,如果未能解决你的问题,请参考以下文章

Flutter笔记

Flutter笔记

颤振显示空白十字 (X) 图标

android-studio-dir = C:\Program X And​​roid Studio not found at C:\Program FLUTTER PROBLEM

Flutter Android端集成排坑 - armeabi 适配 & FlutterBoost

Flutter 没有找到预装的 Android SDK