Very sorry if my questions are stupid. After searching, I get the source code of 2 open source projects. Somewhat difficult to describe, but it is an assistant app instead of google assistant. A project is similar to the framework for the assistant, and the other project that receives information from the assistant to search. I want to put two projects into one and export a single apk. It's hard to get started, so please help me.
Asked
Active
Viewed 815 times
0
-
1include framework project as a module in your main project – Vivek Mishra Nov 05 '18 at 06:05
-
Can you give specific instructions? Because the two projects output 2 apk files, and to perform all the functions, both apk files must be installed. – st0wzz Nov 05 '18 at 06:07
-
when you will merge 2 codes, then it should output a single apk. – Vivek Mishra Nov 05 '18 at 06:09
-
Please teach me how to merge 2 source code. I do not know where to start. please give me a keyword – st0wzz Nov 05 '18 at 06:11
-
https://stackoverflow.com/questions/35223028/how-to-add-another-project-in-my-existing-android-studio-project – Vivek Mishra Nov 05 '18 at 06:13
-
Will I have to convert framework project it into a library module? – st0wzz Nov 05 '18 at 06:17
-
yes that's what I was saying. Import that project as a new module in your main project. – Vivek Mishra Nov 05 '18 at 06:17
1 Answers
0
You can import your old project in the new as a module. See the following instructions.
- Find your old project folder by right-clicking on the project name in the "Package Explorer" -> Properties -> "Location".
- Open your new project, go to File -> New -> Import Module, browse "Location" path and choose your project.
- Go to Project structure -> Dependencies tab and then add that module as a dependency.

Calaf
- 1,133
- 2
- 9
- 22