From my understanding,
apklib contains code + resource shared with
aar files are distributed by
aar differ from apklib in one major way : classes are compiled and included in a classes.jar in the root of the aar. Whereas
apklib cannot contain compiled class files or jars.
1 Can somebody explain the main differences between
aar files ?
aar ? Can
3 Which format is “better” ?
1 Can somebody explain the main differences between apklib vs aar
Couple differences that come to my mind, in addition to the ones you mentioned
aardoesn’t contain source code
aarcan contain custom proguard file and custom lint rules
2 Can Maven use aar ? Can Gradle use apklib ?
The Android Maven Plugin supports
aar since version 3.7.0.
Gradle doesn’t support using
apklib dependencies but you could export your
apklib (see this post).