Android Studio generates AAR packages, not debug packages, but release packages

Source: Internet
Author: User

1. Write module, as library

Here is the AAR package that needs to be published, which is the random project

2.app Dependent mylibrary

2.1 Setting up Project Structure

2.2 App relies on modules

2.3 Results

3. Use a random method in the module.

4. Key steps--release apk

5. View AAR-Release pack

6. Over

PS. The 2nd step has a shortcut--in the app directly using the random method in the Module, there will be code hints, need to rely on the MyLibrary module.

OK to complete the 2nd step.

Android Studio generates AAR packages, not debug packages, but release packages

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.