Beginner issue - None of the following functions can be called with the arguments supplied:

I used to program like 20 years ago. Trying to get back into it.

For this code:

private fun scheduleWork() {
    val workRequest = PeriodicWorkRequestBuilder<CheckInService>(1, TimeUnit.DAYS).build()
    getInstance(this).enqueue(workRequest)
}

I’m getting the following error: None of the following functions can be called with the arguments supplied:
public inline fun PeriodicWorkRequestBuilder(repeatInterval: Duration, flexTimeInterval: Duration): PeriodicWorkRequest.Builder defined in androidx.work

Please assume I know nothing, just trying to take it step-wise. I’m looking at similar support discussions, but it helps to see it applied to this specific case.

repeatInterval, which is the first argument that you supplied 1, needs to be a Duration, not just a regular old Int. I suspect you got this code from somewhere outdated maybe? Regardless, what you probably want is to replace the call with: PeriodicWorkRequestBuilder<CheckInService>(1.days) you might have to import the Duration.Companion.days extension function