Comments (10)
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.
Are you sure you've included RxJava correctly?
from reservoir.
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.
Please read the RxJava section again.
from reservoir.
@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.
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.
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.
Ok. Thanks for reporting. Will check this out.
from reservoir.
Fixed in v3.1.0
. Please update your dependencies. Thanks for reporting this.
from reservoir.
@rickytribbia any fixes?
from reservoir.
Related Issues (20)
- RxAndroid as a provided dependency HOT 1
- Failed to invoke protected java.text.DateFormat() with no args HOT 1
- Is there any way to set expiry date for a cached object? HOT 1
- this project support multiprocess operation ? HOT 1
- Proguard Rules HOT 2
- GSON Error HOT 1
- A/libc: Fatal signal 11 (SIGSEGV) HOT 2
- Declares multiple JSON fields named id HOT 3
- bytesUsed not working HOT 1
- Add more specific exceptions in README HOT 1
- null object reference! HOT 3
- Any chance for iOS ? HOT 1
- Invalidate Cache when app updates HOT 1
- ability to cancel asynctask HOT 1
- Would be support of RxJava2? HOT 2
- rx.java seems not optionable - `Failed resolution of rx/Observable$onSubscribe` error HOT 1
- Can we put multiple keys into cache? HOT 3
- Replace RxJava 1 with RxJava 2 HOT 4
- What can be the causes for faliure for storing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reservoir.