码迷,mamicode.com
首页 > 移动开发 > 详细

Flutter: X Android license status unknown

时间:2019-02-20 17:25:26      阅读:745      评论:0      收藏:0      [点我收藏+]

标签:months   release   ext   issue   warning   repos   red   3.0   1.3   

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.

Flutter: X Android license status unknown

标签:months   release   ext   issue   warning   repos   red   3.0   1.3   

原文地址:https://www.cnblogs.com/ajanuw/p/10407686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!