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
Post a Comment