Retrofit2 + RxJava2 + RxAndroid error
<p>I am getting error message as below when try to crate <code>Subscriber</code> and subscribe. </p>

<pre><code>can not resolve method 'subscribe(anonymous rx.Subscriber&lt;GooglePlacesResponse&gt;)'
</code></pre>

<p><strong>build.gradle</strong></p>

<pre><code>// JSON Parsing
compile 'com.google.code.gson:gson:2.6.1'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
compile 'io.reactivex.rxjava2:rxjava:2.0.2'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1
</code></pre>

<p><strong>GooglePlaceService.java</strong></p>

<pre><code>public interface GooglePlaceService {

    public static final String GOOGLE_API_KEY = "google_api_key";

    @GET("maps/api/place/nearbysearch/json?radius=2000&amp;key="+GOOGLE_API_KEY)
    Observable&lt;GooglePlacesResponse&gt; getNearbyPlaces(@Query("location") String location);
}
</code></pre>

<p><strong>ApiUtils.java</strong></p>

<pre><code>public class ApiUtils {    

    public static final String GOOGLE_PLACE_BASE_URL = "https://maps.googleapis.com/";

    public static GooglePlaceService getGooglePlaceService() {
        return getClient(GOOGLE_PLACE_BASE_URL).create(GooglePlaceService.class);
    }

    public static Retrofit getClient(String baseUrl) {

        Retrofit retrofit = new Retrofit.Builder()
                .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl(baseUrl)
                .build();

        return retrofit;
    }
}
</code></pre>

<p>Observable <code>Observable&lt;GooglePlacesResponse&gt;</code> is as below.</p>

<pre><code>Observable&lt;GooglePlacesResponse&gt; mGooglePlacesResponseObervable = ApiUtils.getGooglePlaceService().getNearbyPlaces(latitude + "," + longitude);

mGooglePlacesResponseObervable
   .subscribeOn(Schedulers.io())
   .observeOn(AndroidSchedulers.mainThread())
   .subscribe(new Subscriber&lt;GooglePlacesResponse&gt;() { &lt;-- Error here : can not resolve method `subscribe(anonymous rx.Subscriber&lt;GooglePlacesResponse&gt;)`

            @Override
            public void onNext(GooglePlacesResponse googlePlacesResponse) {

                }

            @Override
            public void onCompleted() {

            }

            @Override
            public void onError(Throwable e) {

            }
     });
</code></pre>