title: Android RX Java, can not resolve scheduler.io()
body: <p>I am very new to Java, Android and RX Java.I am interested in implementing the Architectural components together with RX Java.</p>
  
  <p>I have repository which makes a call to my API service to get the session id from the server. I am having problems in getting the data smoothly to my Repository where i wish to consume and store the data in room.</p>
  
  <p>Retrofit interface:-</p>
  
  <pre><code>Observable&lt;MainResponse&gt; sendJsonLink1(@Query("svc")String svc, 
  @Query("params")String params);
  </code></pre>
  
  <p>ApiService:</p>
  
  <pre><code>MtsApiInterface mtsApiInterface 
  =RetrofitInstance.getRetrofitInstance().create(MtsApiInterface.class);
  
  public Observable&lt;MainResponse&gt; GetSessionandResourceID(String svc, String 
  params) {
      return mtsApiInterface.sendJsonLink1(svc, params);
  }
  </code></pre>
  
  <p>Repository:</p>
  
  <pre><code>public MutableLiveData&lt;String&gt; getSessionId() {
      Observable&lt;MainResponse&gt; mainResponseObserver = 
  mtsAPI.GetSessionandResourceID("token/login", AppConstants.PARAMS + "");
      mainResponseObserver.subscribeOn(Scheduler.io())
              .observeOn(AndroidSchedulers.mainThread())
              .subscribe(new Observer&lt;MainResponse&gt;() {
                  @Override
                  public void onSubscribe(Disposable d) {
  
                  }
  
                  @Override
                  public void onNext(MainResponse mainResponse) {
  
                  }
  
                  @Override
                  public void onError(Throwable e) {
  
                  }
  
                  @Override
                  public void onComplete() {
  
                  }
              });
  
      return msessionId;
  
  }
  </code></pre>
  
  <p>the above repository code does not work, it says can not resolve scheduler.io()....</p>
  
  <p>I am stuck on last part. I don't know how to get the data in the repository and send it to the view model through live data. </p>