IntelliJ IDEA can't compile with big size library

I have a library with huge amount of classes. This jar size = 276MB. When I include this jar to module dependencies, all seems fine. I can use import classes in editor. Navigate to classes and decompile them (Ctrl+N) and so on... All working fine.

But when I try compile this project, compiler tells me: "Can't find symbol class ....", "package ... does not exist".

Gradle compiles fine with this lib. Can JAR size provide problems like this?

Upvotes: 0

Views: 296

Answers (2)

Solved. This is not IDEA bug. This jar was a ZIP64 format... so, and java compiler bellow version 1.7_55 can't operate with it https://blogs.oracle.com/xuemingshen/entry/zip64_support_for_4g_zipfile. In my project i use 1.6 java, gradle use latest, so.

When i change project SDK problems is gone.

Upvotes: 0

user3667171
user3667171

Reputation:

To me It looks like IDE bug.

Try the following things:

  1. Try File->Invalidate Caches
  2. Try putting the the jar project correctly
  3. Try recompiling the jar in the IDE (if you have the jav code) and relate to your main project.

If the above don't work, you need to report a bug.

Upvotes: 1

Related Questions