如何在 Intellij Idea 中添加库 [英] How to add a library in Intellij Idea

查看:79
本文介绍了如何在 Intellij Idea 中添加库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从 Eclipse 切换到 Intellij.现在我正在尝试使用 andengine 库.

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

在 Eclipse 中添加库很容易.只需右键单击 > 属性 > 添加库.

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

在 Intellij 中,右键单击文件夹时没有选项(见图).如何在 Intellij 中添加项目库(文件夹,而不是 jar 文件)?

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?

谢谢..

推荐答案

Navigate to File >项目结构,选择Modules,然后点击加号按钮添加另一个文件夹(包含源代码).

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

这篇关于如何在 Intellij Idea 中添加库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆