Import android.support cannot be resolved

I get an error: import android.support could not be resolved in the line:

import android.support.v4.app.NotificationCompat; 

Has anyone seen this before, or have any idea what I can do to solve this? The problem occurs when adding a library that I created, and quits when I delete it.

+6
source share
3 answers

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

go to the Android installation folder, for example C:\Program Files\Android\android-sdk\extras\android\support\v4 , there you will find the android_support_v4.jar file, then add the jar file and go to the "Order" and "Export" tab check the library and click OK.

+25
source

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

0
source

It looks like you are missing a dependency library support.

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

0
source

Source: https://habr.com/ru/post/954011/


All Articles