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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With