RxJavaHooks cannot be resolved in my android unit testing -


in android unit testing file, doing import:

import rx.plugins.rxjavahooks;

as need use rxjavahooks.

in gradle file, have added dependency rxjava , rxandroid:

compile "io.reactivex:rxandroid:$rxandroid_version"

compile "io.reactivex:rxjava:$rxjava_version"

still, error rxjavahooks cannot resolved. can me this. thanks

rx.plugins.rxjavahooks artifact of rxjava 1.x.

the group part of coordinates of dependencies (io.reactivex) indicates using rxjava 2.x, why class you're looking isn't available.

(fyi - rxjava 1.x classes uses rx namespace)

according docs should use rxjavaplugins:

the class-based rxjavaobservablehook , friends gone , rxjavahooks functionality incorporated rxjavaplugins.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -