You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Visual Studio接受Android SDK API 35许可证失败,sdkmanager操作后仍未识别

解决Visual Studio中Android SDK许可证已接受但仍重复要求的问题

问题描述

在Visual Studio中尝试接受API 35的Android SDK许可证时,控制台输出以下错误:

Aceptando licencias de Android SDK...
Version information not found for component Google Play Intel x86 Atom System Image r3 [System Image: X86 API 27 (Google Inc.)]
Version information not found for component Google Play Intel x86_64 Atom System Image r7 [System Image: X86_64 API 33 (Google Inc.)]
[RunLongOperation] exception
System.Exception: Error al intentar aceptar licencias de Android

已在Visual Studio配置的SDK路径下执行sdkmanager --licenses命令并完成许可证安装,但Visual Studio仍未识别该操作,持续要求接受许可证。

解决方案

  • 卸载损坏的系统镜像组件
    错误提示中的两个系统镜像组件存在版本信息缺失,会干扰许可证状态检测:

    1. 打开Visual Studio的Android SDK管理器,定位到Google Play Intel x86 Atom System Image (API 27)和Google Play Intel x86_64 Atom System Image (API 33)组件,执行卸载操作
    2. 重启Visual Studio,再次尝试接受许可证
  • 手动同步许可证与缓存

    1. 找到Visual Studio配置的SDK根目录,进入licenses子文件夹,确认已存在对应API 35的许可证文件(如android-sdk-license)
    2. 关闭Visual Studio,删除SDK目录下的.android缓存文件夹(若存在)
    3. 重新打开Visual Studio,进入Android项目的属性配置页面,点击"同步SDK"按钮刷新状态
  • 重置Visual Studio的SDK路径配置

    1. 打开Visual Studio的「工具」→「选项」→「Android设置」
    2. 记录当前的SDK路径,临时修改为一个不存在的路径,点击「确定」保存
    3. 再次进入Android设置,改回原SDK路径并保存
    4. 重启Visual Studio后重新尝试许可证接受流程

内容的提问来源于stack exchange,提问作者Eliuber

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 11:57:35