Add a secondary item to the Android master project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.