简体   繁体   中英

How to import a library into Intellij?

I'd like to add a library to my project in Intellij. After adding the external library in the project settings Intellij recognizes the library and tells me to import it when trying to instantiate an object from the external classes.

But when I try to import a class from the external library Intellij doesn't accept it, by saying "Cannot resolve symbol".

Intellij-类导入错误

Create a lib directory in your project. Drop your jar in there, then right-click on the lib directory and select "Add as Library".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM