Umer Y. 1 Posted May 25, 2022 Is there any way to utilize .aar android library in delphi android project. We can use JAR archive. Share this post Link to post
Mustafa ֍zgun 7 Posted May 25, 2022 Hi https://docwiki.embarcadero.com/RADStudio/Sydney/en/Adding_A_Java_Library_to_Your_Application_Using_the_Project_Manager https://stackoverflow.com/questions/39450528/adding-a-java-library-file-aar-in-rad-studio-10-seattle 1 Share this post Link to post
Umer Y. 1 Posted May 26, 2022 Thanks Mustafa. I have gone through these links. But still not able to use aar in project. JAR, I was able to. For AAR Library, all code is compiled to Java Byte code. And there need to also include maven repo dependencies. 1 Share this post Link to post
loki5100 7 Posted January 16, 2023 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 1 Share this post Link to post