Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "@aar" means in gradle 'compile' task

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

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.

like image 385
ITurchenko Avatar asked Oct 08 '14 06:10

ITurchenko


People also ask

What is testImplementation in gradle?

Configuration inheritance and composition For example the testImplementation configuration extends the implementation configuration. The configuration hierarchy has a practical purpose: compiling tests requires the dependencies of the source code under test on top of the dependencies needed write the test class.

What is compile in build gradle?

compile specifies an external dependency for the project you are building. compile requires group, name, and version. These can either be broken out or specified using the short form "group:name:version". see Gradle Dependency Management Basics.

Where can I find an AAR file?

If you have a module defined as an android library project you'll get . aar files for all build flavors (debug and release by default) in the build/outputs/aar/ directory of that project.


1 Answers

The AAR format

is the binary distribution of an Android Library Project.

As described here in the official Android Tools documentation.

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.

like image 142
Guy B. Avatar answered Oct 07 '22 12:10

Guy B.