I want to use Fetch2 to download a file in my app but I got this error when I tried.
Sample code in Java: [ From This link ]
fetch.enqueue(request, updatedRequest -> {
//Request was successfully enqueued for download.
}, error -> {
//An error occurred enqueuing the request.
});
My code [Kotlin].
fetch.enqueue(request,
success = { _: com.tonyodev.fetch2.Request ->
TODO()
},
failed = { _: com.tonyodev.fetch2.Error ->
TODO()
})
This is the error which I got:

Edit: I got this error when compile my code.
None of the following functions can be called with the arguments supplied:
public abstract fun enqueue(request: Request, func: Func<Request>? = ..., func2: Func<Error>? = ...): Fetch defined in com.tonyodev.fetch2.Fetch
public abstract fun enqueue(requests: List<Request>, func: Func<List<Request>>? = ..., func2: Func<Error>? = ...): Fetch defined in com.tonyodev.fetch2.Fetch