Android的工作室:新项目VS新模块
我知道Android Studio使用字模块
,和其他IDE像Eclipse使用这个词项目
。
然而,当我去文件
菜单中,我得到的选项来创建一个新建模块
,以及一个新项目
。
I know that Android Studio uses the word module
, and other IDEs like Eclipse use the word project
.
However when i go to File
menu, i got options to create a New Module
, as well a new Project
.
什么是那些2之间的区别是什么? (如果有的话)
What are the differences between those 2? (If there are any)
什么是推荐使用?
从文档(Android的Studio是基于IntelliJ IDEA的):
From the documentation (Android Studio is based on Intellij IDEA) :
无论你在IntelliJ IDEA的做,你这样做,在一个范围内 项目。一个项目是重新presents一个组织单位 完整的软件解决方案。
Whatever you do in IntelliJ IDEA, you do that in the context of a project. A project is an organizational unit that represents a complete software solution.
您成品可以被分解成一系列不连续的, 隔离模块,但它是一个项目的定义,使他们 一起捆绑成一个更大的整体。
Your finished product may be decomposed into a series of discrete, isolated modules, but it's a project definition that brings them together and ties them into a greater whole.
有关Android的,这意味着每个应用程序的一个项目,每库和每个测试程序一个模块。
For Android, it means one project per app, and one module per library and per test app.
有,如果你尝试在同一项目内建设多个应用程序的多个问题。这是可能的,但如果你试图(像我一样),你会看到,几乎所有的设计,每个项目一个单一的应用程序工作。
There are multiple issues if you try to build multiple apps within the same project. It's possible, but if you try (like I did), you will see that almost everything is designed to work with a single app per project.
例如,有一个选项,以重建工程,这是没有意义的与多个应用程序,许多其他项目设置将是无用的,当你有多个存储库内置的VCS系统也不是很大。
For example, there is an option to "rebuild the project", which makes no sense with multiple apps, many other project settings would be useless, and the built-in VCS system isn't great when you have multiple repositories.