6

I'm getting an error stating: import android.support cannot be resolved at the line:

import android.support.v4.app.NotificationCompat;

Has anyone seen this before or have any idea what I can do to resolve it? The issue occurs when adding a library I've built - and goes away when I remove it.

OhNoItsAnOverflow
  • 237
  • 2
  • 5
  • 13

3 Answers3

25

Right click the project properties->java build path->libraries click add external jar.

browse go to android installation folder like C:\Program Files\Android\android-sdk\extras\android\support\v4 there you find the android_support_v4.jar file then add the jar file and go to order and export tab check the library and click ok..

Aravin
  • 4,126
  • 1
  • 23
  • 39
0

You need to add the android-support-v4.jar to your project. It looks like your library requires it.

Daniel Gabriel
  • 3,939
  • 2
  • 26
  • 37
0

Looks like you are missing a dependecy to the Support Library.

See http://developer.android.com/tools/support-library/setup.html on how to add the dependency in your IDE.