【发布时间】:2014-01-29 01:04:08
【问题描述】:
我开发了一个 Android 应用程序,它在 4.0 及更高版本中运行良好,但在 2.3.4 版本中它给出了关于 Responcecache 的异常。我按照github:-https://github.com/candrews/HttpResponseCache。我遇到了在2.3.4和2.3.6中运行的异常。
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.jakewharton.DiskLruCache
at com.integralblue.httpresponsecache.compat.libcore.net.http.HttpResponseCache.<init>(HttpResponseCache.java:83)
at com.geeklabs.footmark.util.HttpResponseUtil.enableHttpResponseCache(HttpResponseUtil.java:41)
com.integralblue.httpresponsecache.HttpResponseCache.install(httpCacheDir, httpCacheSize);
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
如何解决这个问题,请帮助我。
【问题讨论】:
-
看起来你还没有添加库
-
@Bhargav Methuku - 你得到解决方案了吗?
-
@user3110424 你的意思是哪个库.....
标签: java android caching classnotfoundexception httpresponsecache