I wanna write an android application which can be extended with modules (android libraries). The modules shall be loaded at runtime. Therefore they'll be downloaded from an url and stored in a directory. The modules are aar files.
Is there a way to load aar files dynamically at runtime?
I know it's possible to just load the contained classes.jar with an URLClassLoader. But than I can't load the layout, string, ... resources. HM
Does anyone know a way how to solve this?
EDIT:
I found a few related topics:
- Dynamically loading aar library
- https://stackoverflow.com/questions/25919338/is-possible-to-include-a-dynamically-aar-file
- Write Plugin for Android App
- Plugins architecture for an Android app?
- How to develop an app that has add-ons?
- Android - Build an application that supports add-ons
It seems that it doesn't work because of the answer from the first link. I hope I'm wrong with that thinking.