IntelliJ IDEA does not detect classpath library jar file

Answered

I am attempting to add an external jar to my module's build path. I've added the jar as a module dependency and as a library, and the compiler is still unable to find the jar. I'm using intelliJ 14.1. I have verified that the jar is intact and not corrupt.

BwxRE.jpg

HKFAK.jpg

8 comments
Comment actions Permalink

I am having the same issue. Very frustrating


0
Comment actions Permalink

Please attach a sample project with a jar that will reproduce the problem.

0
Comment actions Permalink

here ya go.  If you look in the main activity in the sample Android project, you'll notice that the import from the other module does not work.  Thanks in advance for your help.



Attachment(s):
Archive.zip
0
Comment actions Permalink

You need to enable Export checkbox so that this library is available to the myapp via the module dependency:

http://i.imgur.com/u6ti4ge.png

0
Comment actions Permalink

I am having the same problem. This does not seem to work. With Eclipse, this works out-of-the-box, but with Intellj, I have gotten very frustrated. 

0
Comment actions Permalink

Do you work with Android Gradle project? What is IDE version? Can you provide a project with the example of the setup?

0
Comment actions Permalink

I am having the same issue.
With each upgrade, more and more basic problems appear. Eclipse become more atracttive and it is free. Very frustrating

0
Comment actions Permalink

@victor could you elaborate on your exact problem? There could be many different set-ups and similar issues. Thanks.

0

Please sign in to leave a comment.