Closed KonradSzewczuk closed 6 years ago
At first view, your code looks good. Can you specify the exact line, where this error is happening? Do you get any errors in your MyJobService
class?
It gives me an error by underline only the ".java" keyword in line:
.setService(MyJobService::class.java)
I don't have any errors in MyJobService
class
It seems that I imported wrong JobService.
Instead of:
import android.app.job.JobParameters
import android.app.job.JobService
Should be:
import com.firebase.jobdispatcher.JobParameters
import com.firebase.jobdispatcher.JobService
I try to setup JobService using FirebaseJobDispatcher.
Here is my JobService:
However when i try to setup it like this:
I am getting this compiler error in Android Studio:
How to setup it in Kotlin correctly?