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
Post a Comment