Android projects to generate AAR and reference AAR solutions

Source: Internet
Author: User

Reference dependencies are common in projects, and Java development is typically a reference jar, so Android is generally referring to jars, but Android references jars can sometimes have a variety of packet conflicts, a headache! ,

In fact, Android has its own unique reference AAR, the following start to apply it!

1. First Generate AAR

The first step: change the Apply plugin to ' com.android.library ' and put the ApplicationID "com.example.xxxxxxxxx" Out ()

The second step: Build the project can be (app\build\outputs) directory will appear in the AAR package, usually the debug package

Part III: Copy the AAR to the project's Libs, then the app Build.gradle configuration. Re-compile it for you.

The following two configurations must not be forgotten, or can not be used

Android projects to generate AAR and reference AAR solutions

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.