Adding jar to android project


I have a problem adding android-support-v4.jar to my project.

I add it as a project library. Then add this library to module dependencies and check "Export" checkbox.
But IDEA do not put this library to resulting .apk. When I run my app I get following error:
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.SwipeRefreshLayout" on path: DexPathList[[zip file "/data/app/app.simleRates-2.apk"],nativeLibraryDirectories=[/data/app-lib/app.simleRates-2, /system/lib]]

Please tell me what I'm doing wrong?

I use IDEA 13.1.2.


Original message URL:

Please sign in to leave a comment.