Thursday, 11 April 2019

How to use sdk's .aar file in a android studio project.

I have created my own SDK and now i want to use the generated AAR file in a different project. for this following things need to do :-
1. Copy .aar file in your project lib folder.
2. Now open your app:gradle  and inside dependencies add following
/*add num library*/compile(name: 'addnum-debug', ext: 'aar')




3. Now open Project : build.gradle and add following :-
flatDir {
    dirs 'libs'    dirs project(':addnum').file('libs')
}


AFTER THIS YOU WILL ABLE USE SDK CLASS.

No comments:

Post a Comment