Java Question How do I use the androidx libraries?

maxh2815

Member
I'm trying to create a small library to do a wrap of the androidx.work.WorkManager class. Where is the jar file I need to reference to include these androidx libraries? It doesn't appear to be included in the default android jar, and I cant find it anywhere in the android-sdk folder. Do I need to download them from somewhere as separate libs and show SLC where they are?
 

maxh2815

Member
Also, if anyone knows if it's possible (and how) to access androidx packages from inline java instead of having to create a library, that would be extra helpful. Thanks
 

maxh2815

Member
Ok, I've installed work runtime v2.5.0 from the SDK manager. Adding
B4X:
#AdditionalJar: androidx.work:work-runtime
lets me include the androidx.work packages, and the app compiles without any errors.
However, now the app crashes on startup. If I remove the #AdditionalJar, it doesn't crash, but as soon as I put it back in it does. I don't know if this is something else entirely - maybe I should create a new thread? I've tried looking in the unfiltered logs but it seems like it's crashing before the logger can connect.
 
Top