java - PDFBox import error in intellij -


pdfbox jar added in intellij(setting> project structure> modules> dependencies) , have added gradle dependency testcompile 'org.apache.pdfbox:pdfbox:2.0.1' in gradle build , build successful.even after importing 'import org.pdfbox...' in java file shows error cannot resolve symbol pdfbox.

also tried file->invalidate caches\restart.

sometimes, don't need open project structure dialog create library , add dependencies of module. case when there .jar files within project content roots.

you can select such .jar files in project tool window , use these files create library. when doing so, able select library level , module dependencies new library should added.

in similar way, can use directory containing .jar files create library.

open project tool window (e.g. view | tool windows | project). select .jar file or files included in library, or directory contains .jar files of interest. select add library context menu. in create library dialog, specify library name, level , module in library used. 

this solved issue.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -