android LruCache真实设备

时间:2015-01-28 00:39:35

标签: android web-services android-lru-cache

我尝试使用RestFull Web服务创建Android应用程序时使用和使用Lrucahe保存图像所有应用程序工作完成但是当真实设备上的安装应用程序引发异常时:java.lang.noclassdeffounderror android.util.lrucache我的设备目标是2.3.6

1 个答案:

答案 0 :(得分:0)

您需要appcompat v4才能使用LruCache在下面的API上运行12.添加库并使用以下方法导入类:

import android.support.v4.util.LruCache;

参考:http://developer.android.com/reference/android/support/v4/util/LruCache.html