pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.54k stars 182 forks source link

java.lang.ClassNotFoundException: Didn't find class "io.reactivex.functions.Predicate" #891

Closed rusxakep closed 6 years ago

rusxakep commented 6 years ago

Proguard problem? What's problem?

Call: DefaultStorIOSQLite.builder() cause next exception:

Caused by: java.lang.ClassNotFoundException: Didn't find class "io.reactivex.functions.Predicate" on path: ...... at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125) at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) at com.pushtorefresh.storio3.sqlite.impl.DefaultStorIOSQLite$Builder com.pushtorefresh.storio3.sqlite.impl.DefaultStorIOSQLite.builder() (DefaultStorIOSQLite.java:162)

nikitin-da commented 6 years ago

Hi, @rusxakep Did you add rxjava2 dependency explicitly? implementation 'io.reactivex.rxjava2:rxandroid:2.1.16

rusxakep commented 6 years ago

Old code, new rules. Ok, accepted. Sorry for that.