您尚未接受以下SDK组件的许可协议 [英] You have not accepted the license agreements of the following SDK components

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

问题描述

我下载了最新的android SDK工具。版本24.4.1。并使用命令行安装sdks。我询问时输入了y


您是否接受许可证'android-sdk-license-c81a61d9'[y / n]:y
$ b

但是,当使用Gradle 3.1构建时,以下内容显示出来:


您尚未接受以下SDK组件的许可协议:
[Android SDK平台23,Android SDK Build-Tools 23.0.1]。
在构建项目之前,您需要接受许可协议并使用Android Studio SDK Manager完成缺失组件的安装。
或者,要了解如何将许可协议从一个工作站传输到另一个工作站,请转至 http://d.android.com/r/studio-ui/export-licenses.html


我检查过〜/ .android / opt / android-sdk 放置Android工具。既不包含名为许可证的文件夹。 解决方案

接受许可协议从命令行改变了。您可以使用位于以下位置的SDK管理器:

 〜/ Library / Android / sdk / tools / bin 

运行sdkmanager如下:

  ./ sdkmanager --licenses 

然后接受您尚未接受的许可证,但需要。



详情请参阅 Android Studio文档,尽管当前文档缺少对-licenses选项的任何描述。


I downloaded the latest android SDK tools. version 24.4.1. And use the command line to install sdks. I typed y when asked

Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: y after that install succeeded.

But when using Gradle 3.1 to build, the follows shows up

You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

I checked ~/.android and /opt/android-sdk where android tools are put. Neither contain folder named licenses.

解决方案

The way to accept license agreements from command line has changed. You can use the SDK manager which is located at:

~/Library/Android/sdk/tools/bin

Run the sdkmanager as follows:

./sdkmanager --licenses

And accept the licenses you did not accept yet but do need.

See for more details the Android Studio documentation, although the current documentation is missing any description on the --licenses option.

这篇关于您尚未接受以下SDK组件的许可协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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