A larger project often requires multiple projects to make it easier to develop and manage in parallel, but at the end of the month, it will be shared. How do you add other ancillary projects to the main project?
It's a common practice to package a secondary project into a jar package and import it into the main project like a library, but there's a hurdle if we want to edit the code in the secondary project at the same time in the master project. Eclipse also supports another approach: link source, by connecting to the source code directory of the secondary project, we can view and edit the code of the Auxiliary project in the main project, and finally, we can compile the build with one of the following actions:
Right-click the project--build path--link source--browse, select the code directory for the Auxiliary project, and if it is the same as the code directory of the main project, we can modify the folder name.
Compile-time error may be found in the build path cannot find a class, but this class has been imported into the compilation path AH? The reason is that we do not have the only link source generated path to the main project's default build path, modified as follows:
Right-click the project--build path--configure Path--java build Path--source, set allow output folders for source folders to tick before this option, then select OK, Recompile.
Add a secondary item to the Android master project