I faced a similar problem:
Task: add .aar.aar SDK inside another SDK
Solution:
- We have to create new Android Library Module inside our library (right click on our library name -> module -> Android library )
We have to create new Android Library Module inside our library (right click on our library name -> module -> Android library )
- Delete all files inside it
Delete all files inside it
- Insert our .arr inside this module
Insert our
.arrinside this module - Create build.gradle file inside module and put there
Create
build.gradlefile inside module and put there:configurations.maybeCreate("default") artifacts.add("default", file('your_arr_name.aar')) Add to your library
build.gradleinside dependencies block next:implementation project(':your_library:your_arr_module')Now rebuild project and everything should work fine
configurations.maybeCreate("default") artifacts.add("default", file('your_arr_name.aar'))
5.Add to your library build.gradle inside dependencies block next
implementation project(':your_library:your_arr_module') 6.Now rebuild project and everything should work fine