I'm trying to observe observable on main thread by using:
    // Kotlin Code
    Observable
      .observeOn(AndroidSchedulers.mainThread())
but I'm getting following error:
    Type Mismatch:
      Required: rx.Scheduler!
      Found: io.reactivex.Scheduler!
The Observable I'm subscribing to is from a Library that is written in Java and therefore uses RxJava.
Am i being stupid and missing something? I'm puzzeled :$
Thanks in advance :)
 
     
     
     
     
     
     
     
    