如何合并两个Android-Studio项目 [英] How to merge two Android-Studio project's

查看:862
本文介绍了如何合并两个Android-Studio项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经问过几次了.但是我不得不发现那是很久以前的事了,没有解决方案.

所以我的问题:

我有一个大项目"A",为此我已经制作并测试了一个子项目"a".在一个单独的应用程序中.现在,我想将这些项目放在一起,或者更确切地说,告知项目"a".在"A"中.

什么是最好的方法?

解决方案

您可以将第二个项目作为Gradle项目导入到您的第一个Android Studio项目中.

您可以通过以下方式导入项目:

1.a..在项目"视图中,右键单击您的项目根目录,然后按照 新建/模块 进行操作.

1.b.,然后选择" 导入Gradle项目 ".

1.c..选择第二个项目的 模块根 .


2..您可以遵循 文件/新/新模块 ,并且与 1.b.相同.


3..您可以遵循 文件/新建/导入模块 ,并且与 1.c.相同.


当您导入现有的Gradle Project时,您可以在配置下拉菜单中看到它.您可以运行,调试甚至编译以分别发布它们.

i know this question has been asked several times. but i had to find out that it was a long time ago and there were no solutions.

so my question:

i have a big project "A", for this project i have made and tested a subproject "a" in a separate app. Now I want to bring these projects together or rather inform, project "a" in "A".

what's the best approach?

解决方案

You can import your second project as a Gradle Project to your first Android Studio Project.

You can import project via:

1.a. From Project view, click right click your project root and follow New/Module.

1.b. And then, choose "Import Gradle Project".

1.c. Select your second project's module root.


2. You can follow File/New/New Module and same as 1.b.


3. You can follow File/New/Import Module and same as 1.c.


When you imported existing Gradle Project, you can see it on the configurations drop-down menu. You can run, debug or even compile for release them separately.

这篇关于如何合并两个Android-Studio项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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