首页 > 解决方案 > 如何解决 Android SDK 仅包含许可证

问题描述

] Android 工具链 - 为 Android 设备开发!Android SDK 仅包含许可证。您第一次构建 Android 应用程序需要比平时更长的时间,而 gradle 会下载缺少的组件。此功能仅在 ANDROID_HOME 中的 licenses 文件夹中的许可证有效时才有效。如果 Android SDK 已安装到其他位置,请将 ANDROID_HOME 设置为该位置。您可能还想将它添加到 PATH 环境变量中。

  Certain features, such as `flutter emulators` and `flutter devices`, will not work without the currently missing
  SDK components.

标签: flutter

解决方案


未找到 Android 组件。请更新路径。使用颤振文档安装

然后你面临andorid许可证问题然后运行

flutter doctor --android-licenses

推荐阅读