AAR
files are more similar to Jar
s than to Dll
s for the following reason:
Dll
s can be shared across applications where asAAR
s and jars are
packaged in with your app.
AAR
s vs Jar
s:
The main difference between a
Jar
and aAAR
is thatAAR
s include
resources such aslayouts, drawables
etc. This makes it a lot easier
to create self-contained visual components. For example if you have
multiple apps that use the same login screen, withJar
s you could
share classes but not the layout, styles, etc., you still had to
duplicate them. WithAAR
s everything is bundled in one neat package.
In conclusion, AAR
s are a big step in the right direction.
Note:
Similar attempts were made with apk-lib
s but they are now obsolete as AAR
s are much better.