Android Archive Library
Download
In the SDK's AAR Library web page (HTML5 version), download and save the latest: Example Android SDK AAR Library
Note: This facility is not available in the PDF print media version of the SDK documentation.
Description
The Example Android SDK Android Archive Library (.aar) is a key ingredient of the Example SDK integration process. Android library packages allow developers to bundle Android libraries, resource files, etc., into binary packages that can be used across multiple projects without providing source code.
The AAR bundle is the binary distribution of an Android Library Project that contains:
- Library project classes
- Resource definitions
- AndroidManifest.xml file
- Ancillary files
The file extension is ".aar" and the maven artifact type should be aar as well, but the file itself a simple .zip file with the following mandatory and optional entries:
- /AndroidManifest.xml (mandatory)
- /classes.jar (mandatory)
- /res/ (mandatory)
- /R.txt (mandatory)
- /assets/ (optional)
- /libs/*.jar (optional)
- /jni/<abi>
- /*.so (optional)
- /proguard.txt (optional)
- /lint.jar (optional)
These entries are directly at the root of the zip file. Note: The R.txt file is the output of aapt with --output-text-symbols.