chi
06/28/2018, 2:43 AMprivate val httpLogging = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
}
It crashes my app with error java.lang.IllegalArgumentException: interceptor == null
, but if I change it to
private val httpLogging
get() = HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
}
My app successfully runs. What are the reasons behind this?