I created an Android plugin for unity to handle some native jobs and it works fine on my device, until I wanted to add "WorkManager" class to handle some background jobs and I received following error:
java.Land.NoClassDefFoundError:
androidx.work.PeriodicWorkRequest$builder
I think the problem is that the androidx library does not exist at Runtime. my question is: How to add androidx support library to Unity3D?
Because using
implementation, You can't use their Internal library's component.Still You want to use, You need to manually import that library in Unity.
Download aar file from here. and import into unity project.