Skip to content Skip to sidebar Skip to footer

Android Could Not Find Class 'android.app.job.JobScheduler'

I'm keep getting this error while build apk file with option minifyEnabled true. Application build process and installation been success but failed to launch with this error. I hav

Solution 1:

JobScheduler API is was introduced from API 5.0. So it won't work on older versions like 4.2.2 as a result you encounter the error

For versions lower than 5.0, use Firebase JobDispatcher. Refer this documentation for more details.

Firebase JobDispatcher is an open-source library that provides an API similar to JobScheduler in the Android platform. Firebase JobDispatcher serves as a JobScheduler-compatibility layer for apps targeting versions of Android lower than 5.0 (API level 21).

You should also update compileSdkVersion to 26 or 27 from 14.


Post a Comment for "Android Could Not Find Class 'android.app.job.JobScheduler'"