简体   繁体   English

Flutter 中的 Android 许可证

[英]Android licenses in Flutter

Everything was working fine 4 days ago - I did an update and the licenses stopped going through... what I did so far. 4 天前一切正常 - 我进行了更新,许可证停止通过......到目前为止我所做的。

  1. the tools obsolete thing is checked -> does not work检查工具过时的东西->不起作用
  2. flutter doctor --android-licenses -> does not work flutter 医生 --android-licenses -> 不起作用
  3. sdkmanager --licenses -> did not work sdkmanager --licenses -> 不起作用
  4. uninstall and reinstall android at least 3 times -> did not work卸载并重新安装 android 至少 3 次 -> 无效
  5. downloaded manually cmdline-tools folder and put in the Sdk folder -> did not work手动下载 cmdline-tools 文件夹并放入 Sdk 文件夹 -> 不起作用
  6. delete folder tools and replaced with new one -> did not work删除文件夹工具并用新工具替换-> 无效

flutter doctor flutter博士

[.] Android toolchain - develop for Android devices (Android SDK version 29.0.3) X Android license status unknown. [.] Android 工具链 - 为 Android 设备开发(Android SDK 版本 29.0.3)X ZE846DZ6 许可证状态C未知。

flutter doctor --android-licenses flutter 医生 --android-licenses

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema线程“主”java.lang.NoClassDefFoundError 中的异常:javax/xml/bind/annotation/XmlSchema

Flutter 1.17.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision e6b34c2b5c (7 days ago) • 2020-05-02 11:39:18 -0700 Engine • revision 540786dd51 Tools • Dart 2.8.1 Flutter 1.17.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision e6b34c2b5c (7 days ago) • 2020-05-02 11:39:18 -0700 Engine • revision 540786dd51 Tools • Dart 2.8.1

$ java --version openjdk 11.0.7 2020-04-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode) $ java --version openjdk 11.0.7 2020-04-14 OpenJDK 运行环境 AdoptOpenJDK (build 11.0.7+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

Android Studio 3.6.3 Android Studio 3.6.3

I encountered the same problem just recently.我最近遇到了同样的问题。 I solved mine with the ANDROID_HOME path in the Environment Variables.我用环境变量中的 ANDROID_HOME 路径解决了我的问题。

在此处输入图像描述

my solution for the licenses - after 6 days... uninstall everything JAVA AS WELL.我的许可证解决方案 - 6 天后......卸载所有 JAVA 以及。 then reinstall javaSE (jdk8) and reinstall everything openJDK11 as JAVA_home path.然后重新安装 javaSE (jdk8) 并将所有 openJDK11 重新安装为 JAVA_home 路径。 flutter doctor will ask you to do --android-license. flutter 医生会要求你做--android-license。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM