0

When I search volley in android studio, get both com.mcxiaoke.volley:library:1.0.19 and com.mcxiaoke.volley:library-aar:1.0.1. But what is the difference? what is the aar stand for? Base on this answer, the one without a aar is a newer version, is that right?

Community
  • 1
  • 1
Jenkyn
  • 199
  • 2
  • 10

2 Answers2

2

You can add a library with different methods in your project.For example:

https://github.com/mcxiaoke/android-volley

This is for Maven:

<dependency>
    <groupId>com.mcxiaoke.volley</groupId>
    <artifactId>library</artifactId>
    <version>1.0.19</version>
</dependency>

Using SNAPSHOT

add this to repositories section in build.gradle

repositories {
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    }

Or the easiest and best way:

compile 'com.mcxiaoke.volley:library:1.0.19'

And of course, The AAR file consists of a JAR file and some resource files and that comes from Maven repository.

https://stackoverflow.com/a/21485222/4409113

Community
  • 1
  • 1
ʍѳђઽ૯ท
  • 16,646
  • 7
  • 53
  • 108
1

aar is just a file format (like jar). http://tools.android.com/tech-docs/new-build-system/aar-format. the version is what matters. 1.0.19 is newer than 1.0.1

Mo1989
  • 2,374
  • 1
  • 15
  • 17