Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package android.support.v4.util does not exist

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 
like image 901
Amit Avatar asked May 18 '13 06:05

Amit


1 Answers

In my case, the solution was eventually found as documented here:

  • Make sure you have downloaded the Android Support Library using the SDK Manager.
  • Create a libs/ directory in the root of your application project.
  • Copy the JAR file from your Android SDK installation directory (e.g., <sdk>/extras/android/support/v4/android-support-v4.jar) into your application's project libs/ directory.
like image 132
Danny Schoemann Avatar answered Sep 25 '22 23:09

Danny Schoemann