Why should (or shouldnt) I include a gradle dependency as @aar
,
What are the benefits/drawbacks if any?
As you can see I added @aar to the libraries below that supported it. But everything seemed to work before doing that as well...
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.google.android.gms:play-services-maps:7.3.+'
compile 'com.google.guava:guava:18.0'
compile 'com.octo.android.robospice:robospice-spring-android:1.4.14'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
compile 'com.mcxiaoke.volley:library-aar:1.0.0@aar'
compile 'de.psdev.licensesdialog:licensesdialog:1.7.0@aar'
}
See Question&Answers more detail:os