"@aar"是什么意思?在gradle中意味着“编译"任务 [英] What does "@aar" means in gradle 'compile' task

查看:111
本文介绍了"@aar"是什么意思?在gradle中意味着“编译"任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是gradle的新手,无法找到有关此功能的任何文档.

I'm new in gradle and cannot find any documentation about this feature.

我注意到的是 compile 'com.github.asne:asne-vk:0.2.1'引起了一些明显的合并问题(一些在不同的minSdkVersions上发出咕gr声),并且compile 'com.github.asne:asne-vk:0.2.1@aar'正常工作.

All I noticed is that compile 'com.github.asne:asne-vk:0.2.1' caused some manifest merging problems (some grunting abot different minSdkVersions) and that compile 'com.github.asne:asne-vk:0.2.1@aar' works fine.

推荐答案

AAR格式

是Android库项目的二进制发行版.

is the binary distribution of an Android Library Project.

此处在官方Android工具文档中所述.

在您的情况下,在Android Gradle项目中添加编译依赖项时,添加"@aar"意味着您要获取@aar文件而不是常规JAR文件.

In your case, when adding a compile dependency in an Android Gradle project, adding "@aar" means that you would like to fetch the @aar file and not a regular JAR file.

这篇关于"@aar"是什么意思?在gradle中意味着“编译"任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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