包android.support.v4.util不存在不存在、support、android、util

2023-09-04 06:35:27 作者:给我一个理由忘记

由于Android的支持库的最后一次更新,我有进口LruCache问题。 Eclipse的,现在连机器人工作室,一直在说那个包android.support.v4.util不存在。

我使用actionbarsherlock,它包括了支持Android v4和显示没有错误。我的申请被罚款的工作最后SDK的更新。发生了什么变化?我该如何解决这个问题?

下面是显示错误:

 的java:/Users/amit/App/src/com/app/EMCache.java:5:包android.support.v4.util不存在
java的:/Users/amit/App/src/com/app/EMCache.java:9:找不到符号
符号:类LruCache
位置:类com.app.EMCache
java的:/Users/amit/App/src/com/app/EMCache.java:20:找不到符号
符号:类LruCache
位置:类com.app.EMCache
 

解决方案 android.support.v4不存在的解决方法

这可能与this或this,这是解决方案,在转速常见问题。 22更新。

Since the last update for android support libraries, I am having issues with importing LruCache. Eclipse, and now even android studio, keep saying that package android.support.v4.util does not exist.

I am using actionbarsherlock and it has included android support v4 and shows no errors. My application was working fine before this last SDK update. What has changed? How do I fix this?

Here is the error that shows:

java: /Users/amit/App/src/com/app/EMCache.java:5: package android.support.v4.util does not exist
java: /Users/amit/App/src/com/app/EMCache.java:9: cannot find symbol
symbol  : class LruCache
location: class com.app.EMCache
java: /Users/amit/App/src/com/app/EMCache.java:20: cannot find symbol
symbol  : class LruCache
location: class com.app.EMCache

解决方案

This might be related to this or this, which were solutions to common problems in the rev. 22 update.