Android的工作室:新项目VS新模块 [英] Android studio: new project vs new module

查看:100
本文介绍了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.

这篇关于Android的工作室:新项目VS新模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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