Search code examples
androidantappceleratorappcelerator-titanium

Include an AAR library dependency in a Titanium Android module


I'm building an Android module with Titanium framework and I have to include an external dependency in AAR format. I've tried to extract only the classes JAR from the AAR (that is an archive) and to include it in the module, but that trick works only for libraries that not depends to any resources (that is the reason in making an AAR instead of a JAR).

Is there a way to include the AAR in the build process of the Titanium module (that uses Ant as build tool)?

EDIT: seems that at Appcelerator someone will work on that: https://jira.appcelerator.org/browse/TIMOB-18565

meanwhile, any suggestion?


Solution

  • At present there is no direct way to include an AAR library dependency in a Titanium Android module. What you can do is extract only the classes JAR from the AAR and include the JAR. Include the resources extracted from the AAR in the project manually to corresponding directories.