[英]What does “@aar” means in gradle 'compile' task
I'm new in gradle and cannot find any documentation about this feature. 我是gradle的新手,无法找到有关此功能的任何文档。
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. 我注意到的是compile 'com.github.asne:asne-vk:0.2.1'
引起了一些明显的合并问题(一些grunt abot不同的minSdkVersions)和compile 'com.github.asne:asne-vk:0.2.1@aar'
工作正常。
The AAR format AAR格式
is the binary distribution of an Android Library Project. 是Android库项目的二进制分发版。
As described here in the official Android Tools documentation . 如官方Android Tools文档中所述 。
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. 在您的情况下,在Android Gradle项目中添加编译依赖项时,添加“@aar”意味着您要获取@aar文件而不是常规JAR文件。
Actually that is not a classifier. 实际上那不是分类器。 Classifier (the term coming from Maven) refers to something else. 分类器(来自Maven的术语)指的是其他东西。
See http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies 请参阅http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.