Skip to content Skip to sidebar Skip to footer

Realm Noclassdeffounderror: Rx.observable

I am experiencing an issue that is pointed out in Realm's documentation: Jackson Databind Jackson Databind is a library for binding JSON data to Java classes. Jackson uses reflect

Solution 1:

You are using Realm older than v4.0.0, so you need to create package rx, and the dummy class called Observable. But you just need to create it in src/main/java/rx.

package rx;

publicclassObservable {
}

For Realm 4.0.0+, you need in src/main/java/io/reactivex.

package io.reactivex;

publicclassObservable {
}

and

package io.reactivex;

publicclassFlowable {
}

and

package io.reactivex;

publicenumBackpressureStrategy {
  MISSING,
  ERROR,
  BUFFER,
  DROP,
  LATEST
}

Post a Comment for "Realm Noclassdeffounderror: Rx.observable"