Android - Error in try to access methods inside OkHttp 4.x
I'm getting this errors when i try to do this fun ->
private fun getUrl(response: Response\): String {
val networkResponse = response.raw().networkResponse()
return networkResponse?.request()?.url()?.toString() ?: response.raw().request().url()
.toString()
}
errors ->
Using 'networkResponse(): Response?' is an error. moved to val
Using 'request(): Request' is an error. moved to val
Using 'url(): HttpUrl' is an error. moved to val
Using 'request(): Request' is an error. moved to val
Using...