"Jian Ling" 002, Android Project Reference Way

Source: Internet
Author: User
The right way to cite engineering

Ordinary Java engineering through this introduction of new projects and external jar package is no problem, Android project but the problem puzzled for a long time, still do not understand. But after groping to find a correct way to introduce the project:

First of all, select Project A, right-->properties->android, see the figure below to know, all the way OK, finally successfully introduced.

Summarize

Idea one: The target project B is packaged into a jar package, then other projects can be referenced directly. However, if the B project is used in the RES resource file (that is, reference to R.java), because the R.java inside is automatically generated, and is dynamic, made into a jar package, the internal resources are not used.

Idea two: The target project B into the Library project, with the above method can be introduced, more insurance or this way reference.

"Jian Ling" 002, Android Project Reference Way

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.