Android许可证状态未知? [英] Android license status unknown?

查看:169
本文介绍了Android许可证状态未知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于应用程序开发,我下载并安装了Flutter sdk及其依赖的Android Studio Java.安装全部后,我出现了错误 用于检查flutter doctor.出现以下错误:

For app development I download and installed Flutter sdk along with its dependencies Android studio, Java. After installing all I came to an error for checking flutter doctor. The following error came:

    Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        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/setup/#android-setup for detailed instructions.

然后在 Flutter Android许可证状态未知的搜索下,我试图用PathToAndroidSDK --update更新Android SDK再次生成以下错误:

Then after searching with the help of Flutter Android license status unknown I tried to update Android SDK with PathToAndroidSDK --update It again generates following error:

    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
            at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
            at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
            at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
            at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
            at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
    Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
            at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
            at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
            at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
            ... 5 more

推荐答案

最后,我得到了如何解决Android许可证状态未知的解决方案

Finally, I got the solution how to fix Android licenses status unknown

首先,如果您正在观看此错误

Firstly, if you are watching this error

Android工具链-为Android设备开发(Android SDK版本28.0.3) X And​​roid许可证状态未知. 尝试重新安装或更新您的Android SDK Manager. 请参见 https://developer.android.com/studio/#downloads 或访问 https://flutter.dev/setup/#android-setup 以获得详细说明.

Android toolchain - develop for Android devices (Android SDK version 28.0.3) 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/setup/#android-setup for detailed instructions.

然后转到并卸载"Android sdk工具" 已过时" ,然后重新安装. 然后,运行代码"flutter doctor" 您将看到类似这样的消息:如果不接受某些许可证,请使用"flutter doctor --android-licenses"进行接受

then go and uninstall "Android sdk tool" and "Obsolete" and reinstall. Then, run the code "flutter doctor" You will see some like this "If some licenses are not accepted then accept by using "flutter doctor --android-licenses"

然后,如果遇到问题并无法回答"y",请运行代码,然后转到此链接并仅下载命令行工具并将其解压缩并将 sdkmanager文件 放入C:\ Users \ i \ AppData \ Local \ Android \ Sdk \ tools \ bin并在此文件夹中运行cmd,然后键入 "sdkmanager --licenses" ,现在您可以使用了.

Then run the code if you got stuck and not be able to reply "y" then goto this link and download Command line tools onlyand extract it and put sdkmanager file in C:\Users\i\AppData\Local\Android\Sdk\tools\bin and run cmd in this folder and type "sdkmanager --licenses" and now you are good to go.

这篇关于Android许可证状态未知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆