How to add a library in Intellij Idea

拜拜、爱过 提交于 2019-12-31 05:17:30

问题


I recently switched from Eclipse to Intellij. Now I'm trying to use the andengine library.

In Eclipse it was easy to add libraries. Just right click > properties > add library.

In Intellij there is no option when you right click a folder (see image). How can I add a project library (a folder, not a jar file) in Intellij?

Thank you..


回答1:


Navigate to File > Project Structure, select Modules, and hit the plus button to add another folder (with source code).




回答2:


Directly to the game engine to add to the project (intelliJ IDEA all versions);

  1. Create new project or open existing project.
  2. Right click "Java" folder in the project explorer and create New -> Package.
  3. Enter new package name: org.andengine
  4. Click to download the AndEngine

  5. Extract zip file and open AndEngine-GLES2 folder. Follow the path and copy the folder (src -> org -> copy andengine folder).

  6. Open your projects and follow the path. Your project module name -> src -> main -> java -> org -> andengine. Paste it here...

=> Open and check Android Studio. when you write will appear "import org." -> andegine.



来源:https://stackoverflow.com/questions/12332869/how-to-add-a-library-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!