在Android项目的gradle构建时出错 [英] Error on gradle build of an Android project

查看:89
本文介绍了在Android项目的gradle构建时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用托管版本在Visual Studio Online上成功构建Android项目。

I haven't been able to successfully build an Android project on Visual Studio Online using hosted build.

我得到了此错误:

2016-07-25T01:16:00.2297968Z ## [错误]>您尚未接受以下SDK组件的许可协议:

2016-07-25T01:16:00.2297968Z ## [错误] [Android SDK Build-Tools 24,Android SDK Platform 24]。

2016-07-25T01:16:00.2307968Z ## [错误]在构建项目之前,您需要接受许可协议并使用Android Studio SDK Manager完成缺少的组件的安装。

2016-07-25T01:16:00.2307968Z ## [错误]或者,要了解如何将许可协议从一个工作站转移到另一个工作站,请访问http://d.android.com /r/studio-ui/export-licenses.html

2016-07-25T01:16:00.2317991Z ## [错误]

2016-07-25T01:16 :00.2317991Z ## [错误] *尝试:
$
2016-07-25T01:16:00.2327966Z ## [错误]使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。

2016-07-25T01:16:00.2297968Z ##[error]> You have not accepted the license agreements of the following SDK components:
2016-07-25T01:16:00.2297968Z ##[error][Android SDK Build-Tools 24, Android SDK Platform 24].
2016-07-25T01:16:00.2307968Z ##[error]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.
2016-07-25T01:16:00.2307968Z ##[error]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
2016-07-25T01:16:00.2317991Z ##[error]
2016-07-25T01:16:00.2317991Z ##[error]* Try:
2016-07-25T01:16:00.2327966Z ##[error]Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

任何人都可以帮我解决这个问题吗?

Can anyone help me with this problem?

推荐答案

Hi ,

根据您的回复,您使用的是Visual Studio  Team  Service( VSO)。该论坛适用于本地TFS。我将帮助您将此案例移至Visual Studio  Team  Service 论坛,以获得
专用支持。

Base on your reply, you are using Visual Studio Team Service(VSO). This forum is for on-premises TFS. I will help you move this case to Visual Studio Team Service forum for dedicated support.

感谢您的理解。

最诚挚的问候,  ;

Best Regards, 

Tingting


这篇关于在Android项目的gradle构建时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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