I have just made the AndroidMerger Tool: Integrate AAR SDK in FMX Android app
An Android library, also called as Android Archive, includes everything you need to build an app like source files, resource files, manifest etc. This is the reason why AARs are different from JARs. AARs can contain resource files as well other than compiled byte code.
Adding such library to Delphi project is long and convoluted process consisting of extracting resources from library, manually adding them to Delphi deployment files, compiling R.Java class, checking dependancies, etc.
With AndroidMerger all of the above can now be done automatically in a single command line. In brief AndroidMerger will:
Use graddle or internal implementation to list all dependencies.
Download libraries and dependancies from local or central maven repository.
Merge the resources of all AARs inside a single directory.
Merge the AndroidManifest files of all AARs inside AndroidManifest.template.xml.
Merge google-services.json in the resources of the project.
Create the R.jar with all resource IDs using aapt or aapt2.
Update the project file (.dproj) to include all resources.
Generate the Delphi native bridge file from the Java libraries.
Everything is here (source code included) : https://github.com/MagicFoundation/Alcinoe/tree/master/Tools/AndroidMerger