xebia-functional / appsly-android-rest

An Android client library for RESTful based web services.
209 stars 51 forks source link

Error with disklrucache-2.0.2 and httpresponsecache-1.3 #32

Closed fjtorres closed 10 years ago

fjtorres commented 10 years ago

I have an error when running application in emulator, the application uses the 1.2-SNAPSHOT version of the library. The emulator is for android API 10, when run application on device with API 15 not show any error. I'll try to test on a device with the API 10.

This is the dependency in my build.gradle file.

compile ('ly.apps:android-rest:1.2-SNAPSHOT') { transitive = true }

The stack trace of error are in this gist: https://gist.github.com/fjtorres/9134711

This message talk about this error on stackoverflow. Post: http://stackoverflow.com/questions/21329326/java-lang-noclassdeffounderror-with-httpresponsecache-and-disklrucache

raulraja commented 10 years ago

We would have to test if downgrading the version of DiskLruCache would negatively impact higher version of if it is even compatible with what we use now in the ObjectCacheManager. If you'd like to give it a shot or contribute a pull request I'd be happy considering downgrading.

raulraja commented 10 years ago

@fjtorres Thanks for your contribution!, I have added a simple cache test that ensures your changes downgrading DiskLRUCache work