Android external Library Reference

Source: Internet
Author: User

Android external Library Reference

Library project structure a library project is a project that contains source code and resources. It can be referenced by other projects, so that other projects can use the code and resources it contains. Multiple Android Application projects can reference the same library project. The same Android Application project can also reference multiple library projects.

Main project: The project that needs to introduce the external library

Sub-project: introduced project, library project

1. Ensure that the SDK Android version used by the sub-project must be <= the version in the main application

2. Set sub-projects as library projects

3. import data into the main project

4. the subitem entry Activity needs to be registered as a normal Activity in the manifest of the main item.

5. because the files in the assets folder of the Android project are not compiled, You need to copy all the sub-project assets to the main project (problems found when you use WorkLight build to automatically generate projects ), run the main project.

Related Article

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: 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.