无法接受许可协议 Android SDK Platform 24 [英] Can't accept license agreement Android SDK Platform 24

查看:38
本文介绍了无法接受许可协议 Android SDK Platform 24的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Cordova 项目上安装 android 平台时出现以下错误.我一直在关注本指南:https://cordova.apache.org/docs/en/latest/guide/cli/

I'm getting the following error when trying to install an android platform on a Cordova project. I've been following this guide: https://cordova.apache.org/docs/en/latest/guide/cli/

执行以下操作时发生错误:$ cordova platform add android --save

Error occurs when executing the following: $ cordova platform add android --save

配置根项目android"时出现问题.您尚未接受以下 SDK 组件的许可协议:[Android SDK Platform 24].

A problem occurred configuring root project 'android'. You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24].

我到处寻找接受 Android SDK Platform 24 许可协议的方法,但没有真正的运气.

I've searched all over for ways to accept the license agreement of Android SDK Platform 24, but no real luck.

提前谢谢你.

推荐答案

你也可以直接执行

$ANDROID_HOME/tools/bin/sdkmanager --licenses

$ANDROID_HOME/tools/bin/sdkmanager --licenses

或者对于 Windows 执行

Or for Windows execute

%ANDROID_HOME%/tools/bin/sdkmanager --licenses

%ANDROID_HOME%/tools/bin/sdkmanager --licenses

-- 或者--

C:Users{你的用户名}AppDataLocalAndroidsdk oolsinsdkmanager --licenses

C:Users{your-username}AppDataLocalAndroidsdk oolsinsdkmanager --licenses

(感谢 @puneet-kumar 的 windows 命令)

(credit for windows command to @puneet-kumar)

这篇关于无法接受许可协议 Android SDK Platform 24的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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