Ask questions about Ant referencing Android third-party engineering packaging

Source: Internet
Author: User

============ Problem Description ============


Using the Ant tool: A project wants to invoke the class under SRC in Project B to package, note: Not to compile the B project into a jar package, but in the Built.xml file in Project A to specify the road strength of SRC in the B project to package, the experienced master can give some guidance? or demo or idea!! Thanks, man. First time do this, head a bit big!!

============ Solution 1============



Set the B project to Lib:
Project->properties->android->library->is Library this tick.
Add the B project to the A project:
Project->properties->android->library->add.,,, inside the B project selected.

After that, there will be default.properties inside.
android.library.reference.3=. /xxxx.xxx. Xxxx
The item.

This makes it possible to compile and compile the code for the B project together.

If the B project is not handled as a lib, then there is no way.

============ Solution 2============


But now I want to use ant to pack, so what Buid.xml should write

Ask questions about Ant referencing Android third-party engineering packaging

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.