Giter Club home page Giter Club logo

Comments (10)

rickytribbia avatar rickytribbia commented on June 26, 2024 1

Similar issue for me, but at init time.

 Rejecting re-init on previously-failed class java.lang.Class<com.anupcowkur.reservoir.Reservoir$1>: java.lang.NoClassDefFoundError: Failed resolution of: Lrx/Observable$OnSubscribe;
at void com.anupcowkur.reservoir.Reservoir.init(android.content.Context, long) (Reservoir.java:39)

It happens at:

Reservoir.init(context, (5 * 1024 * 1024));

I add reservoir as dependency in app gradle file only with:

compile 'com.anupcowkur:reservoir:3.1.0'

I don't want to use reactive into reservoir, because I already use rxjava2 into the rest of the app and I don't want to have to add also rxjava as dependency.

I create a new issue for that => #51

from reservoir.

anupcowkur avatar anupcowkur commented on June 26, 2024

Are you sure you've included RxJava correctly?

from reservoir.

ericntd avatar ericntd commented on June 26, 2024

It's not mentioned in your readme that I need to include RxJava to use getAsync. Also, putAsync is working fine for me so what is the root cause and solution for it?

from reservoir.

anupcowkur avatar anupcowkur commented on June 26, 2024

Please read the RxJava section again.

from reservoir.

AndroidGecko avatar AndroidGecko commented on June 26, 2024

@anupcowkur
Shouldn't this be optional?
I just updated from 2.1 and I'm getting same error
I don't use RxJava, I don't want to include it just to use this lib.

from reservoir.

anupcowkur avatar anupcowkur commented on June 26, 2024

It is optional. Unless you use the getAsync variant that returns observables, you shouldn't be having problems. Is this not the case? If it isn't, then let me know and I'll look into it.

from reservoir.

AndroidGecko avatar AndroidGecko commented on June 26, 2024

just as in @ericn37 example. I just bumped it from 2.1 to 3.0.0
never used RxJava in this project.
It fails during compilation on

Reservoir.getAsync(key, clazz, new ReservoirGetCallback() {

with cannot access Observable class file for rx.Observable not found

from reservoir.

anupcowkur avatar anupcowkur commented on June 26, 2024

Ok. Thanks for reporting. Will check this out.

from reservoir.

anupcowkur avatar anupcowkur commented on June 26, 2024

Fixed in v3.1.0. Please update your dependencies. Thanks for reporting this.

from reservoir.

pooja-gaikwad15 avatar pooja-gaikwad15 commented on June 26, 2024

@rickytribbia any fixes?

from reservoir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.