Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import android.support cannot be resolved [duplicate]

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.

like image 310
OhNoItsAnOverflow Avatar asked Sep 17 '13 17:09

OhNoItsAnOverflow


1 Answers

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..

like image 198
Aravin Avatar answered Oct 18 '22 23:10

Aravin