不能接受许可协议 Android SDK Platform 24 [英] Can't accept license agreement 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
(将 windows 命令归功于 @puneet-kumar)
(credit for windows command to @puneet-kumar)
这篇关于不能接受许可协议 Android SDK Platform 24的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!