zTrap / RxSlideUp

RxSlideUp: Reactive listeners for SlideUp library
https://github.com/mancj/SlideUp-Android
Apache License 2.0
4 stars 2 forks source link

Error:(332, 20) Cannot access class 'rx.Observable'. #1

Closed max-krueper closed 6 years ago

max-krueper commented 6 years ago

I included the library according to the example and I get the following error:

    RxSlideUp.events(slideUp).subscribe()

Error:(332, 20) Cannot access class 'rx.Observable'. Check your module classpath for missing or conflicting dependencies

I have rxkotlin:2.2.0 rxjava:2.1.9 rxandroid:2.0.1 SlideUp-Android:2.2.8 RxSlideUp2:2.0.0

What's wrong?

zTrap commented 6 years ago

For using with RxJava 2 you must add in dependencies 'ru.ztrap:RxSlideUp2:2.0.0' instead of 'ru.ztrap:RxSlideUp:1.0.0'. At this time, I guess, you is using RxSlideUp for RxJava 1.

As addition you can check this branches: RxSlideUp RxSlideUp2

max-krueper commented 6 years ago

And this is what I did, so I am confused, I checked dependecies:

+--- ru.ztrap:RxSlideUp2:2.0.0 | +--- com.github.mancj:SlideUp-Android:2.2.5 -> 2.2.8 () | +--- io.reactivex.rxjava2:rxandroid:2.0.1 | | --- io.reactivex.rxjava2:rxjava:2.0.1 -> 2.1.9 | | --- org.reactivestreams:reactive-streams:1.0.2 | --- io.reactivex.rxjava2:rxjava:2.1.0 -> 2.1.9 ()

zTrap commented 6 years ago

Did you does standard operations for fix some strange troubles?

max-krueper commented 6 years ago

I did this again and it's still the same problem.

max-krueper commented 6 years ago

I created a new blank project with just one dependency and it's the same.

compile 'ru.ztrap:RxSlideUp2:2.0.0'
zTrap commented 6 years ago

I'll check it out in more detail soon

max-krueper commented 6 years ago

after downloading RxSlideUp2-2.0.0.aar and decompiling the RxSlideUp.class I see:

package ru.ztrap.rxslideup;

import com.mancj.slideup.SlideUp; import rx.Observable; ...

zTrap commented 6 years ago

solved in 2.0.1