How can I run Timefold on Android? Specifically,
Yes it works! I have successfully run Timefold 1.9.0 on Android and wanted to share my experience for anyone else who wants to do this.
What is the minimum version of Android needed?
Are there any gotchas?
SolverConfig
with the Java API. It may be that with more work loading solver config files could be made to work.Is there a minimum version of Timefold needed?
ClassLoader
that was picked up by ServiceLoader
inside Timefold was not able to load classes. I'm pretty sure this issue is specific to the particular circumstances of my application, which is a plugin for another system that appears to have changed something that affects this. So I had to explicitly pass in a DexClassLoader
via SolverConfig::withClassLoader
, which worked fine. I also needed Timefold 1.9.0 because this removed the use of ServiceLoader
for Joiners
, which couldn't be configured to use a specific ClassLoader
.What is performance like?