Android Library packaged in AAR form for other project references

Source: Internet
Author: User

1. Our project already has a library, we have the need to refer the library to other projects, and can not let other projects arbitrarily change the code of our project.

2.Rebuild Project after zxinglib generate AAR file, file path:

*.aar: library/build/outputs/aar/libraryname.aar

This can be published to the MAVEN library, and the user can obtain the latest AAR file directly by changing the version number

3. Copy this AAR to the new project's Lib directory, and then change the Build.gradle file for the new project.

4. It's done.

Android Library packaged in AAR form for other project references

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.