maxh2815 Member Jun 28, 2021 #1 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?
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 Jun 28, 2021 #2 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
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
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2021 #3 It is simpler with inline Java. Just add something like: Code: Copy #AdditionalJar: androidx.work:work-runtime
It is simpler with inline Java. Just add something like: Code: Copy #AdditionalJar: androidx.work:work-runtime
maxh2815 Member Jun 29, 2021 #4 Ok, I've installed work runtime v2.5.0 from the SDK manager. Adding B4X: Copy #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.
Ok, I've installed work runtime v2.5.0 from the SDK manager. Adding B4X: Copy #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.
Erel B4X founder Staff member Licensed User Longtime User Jun 29, 2021 #5 maxh2815 said: I don't know if this is something else entirely - maybe I should create a new thread? Click to expand... Yes and carefully check the unfiltered logs. There must be an error message.
maxh2815 said: I don't know if this is something else entirely - maybe I should create a new thread? Click to expand... Yes and carefully check the unfiltered logs. There must be an error message.