How to add .aar dependency in library module?

后端 未结 5 754
北海茫月
北海茫月 2020-12-14 00:54

I am having one .aar file of one library module.
I want to use it as a library or dependency in my other project\'s library module.
How do I do it?

5条回答
  •  孤街浪徒
    2020-12-14 01:19

    Sorry process involves 10 steps but these are super simple and easy.

    1- New->Module

    2- Select import .jar/aar package

    3- Select your .aar file from location

    4- We can see module is added but not configured with app module yet.

    5- Go to Project Structure

    6- Current project structure is like this one

    7- Go to app module and press '+' icon

    8- Select 3rd option Module dependency

    9- Select newly added .arr module

    10- you can see the new module attached with app module. Now click apply.

    you can see we are good to go.

提交回复
热议问题