简体   繁体   English

Android 工具链 - X And​​roid 许可证状态未知。 显示由以下原因引起的错误:java.lang.ClassNotFoundException:

[英]Android toolchain - X Android license status unknown. showing error caused by: java.lang.ClassNotFoundException:

I am trying to setup android studio but here showing an error image where I am getting error我正在尝试设置 android studio,但此处显示错误图像,其中出现错误1

Go to android studio进入安卓工作室

  1. open SDK manager打开 SDK 管理器
  2. under SDK tools uncheck hide obsolete packages at the bottom在 SDK 工具下取消选中隐藏底部的过时包
  3. then you should see an option called Android SDK Tools (Obsolete)那么您应该会看到一个名为 Android SDK Tools (Obsolete) 的选项
  4. check it and apply and let the studio download the package检查并申请,让工作室下载包
  5. once done run the command flutter doctor and it should now prompt you to run flutter doctor --android-licenses once you run the license command accept all licenses by hitting y and it should solve the problem完成后运行命令 flutter doctor ,它现在应该会提示您运行 flutter doctor --android-licenses 运行许可证命令后按 y 接受所有许可证,它应该可以解决问题

try this.试试这个。

Or you will install jdk 8 and after that run following command或者您将安装 jdk 8,然后运行以下命令

flutter doctor --android-licenses

暂无
暂无

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

相关问题 错误:android studio 中的 java.lang.ClassNotFoundException - Error : java.lang.ClassNotFoundException in android studio Android 2.1:引起:java.lang.ClassNotFoundException:Fragment - Android 2.1 :Caused by: java.lang.ClassNotFoundException: Fragment 错误“由以下引起:java.lang.ClassNotFoundException:” - Error “Caused by: java.lang.ClassNotFoundException:” Android Studio - 应用程序在启动时崩溃,我不知道这个错误是什么意思:引起:java.lang.ClassNotFoundException:[...] - Android Studio - app crashes on startup, I have no idea what this error means: Caused by: java.lang.ClassNotFoundException: [...] Android Studio错误:原因:java.lang.ClassNotFoundException:未找到类 - Android Studio error: Caused by: java.lang.ClassNotFoundException: Didn't find class Android java.lang.ClassNotFoundException - Android java.lang.ClassNotFoundException Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal error in jenkins when building android 项目 - Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal error in jenkins when building android project Android库项目上的java.lang.ClassNotFoundException - java.lang.ClassNotFoundException on Android Library Project 适用于Android 4.1.2的java.lang.ClassNotFoundException - java.lang.ClassNotFoundException for android 4.1.2 Android java.lang.ClassNotFoundException(webrtc) - Android java.lang.ClassNotFoundException (webrtc)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM