Skip to main content

I faced a similar problem:

Task: add .aar.aar SDK inside another SDK

Solution:

  1. 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 )

  2. Delete all files inside it

    Delete all files inside it

  3. Insert our .arr inside this module

    Insert our .arr inside this module

  4. Create build.gradle file inside module and put there

    Create build.gradle file inside module and put there:

    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

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

I faced a similar problem:

Task: add .aar SDK inside another SDK

Solution:

  1. We have to create new Android Library Module inside our library (right click on our library name -> module -> Android library )
  2. Delete all files inside it
  3. Insert our .arr inside this module
  4. Create build.gradle file inside module and put there
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

I faced a similar problem:

Task: add .aar SDK inside another SDK

Solution:

  1. We have to create new Android Library Module inside our library (right click on our library name -> module -> Android library )

  2. Delete all files inside it

  3. Insert our .arr inside this module

  4. Create build.gradle file inside module and put there:

    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

Source Link

I faced a similar problem:

Task: add .aar SDK inside another SDK

Solution:

  1. We have to create new Android Library Module inside our library (right click on our library name -> module -> Android library )
  2. Delete all files inside it
  3. Insert our .arr inside this module
  4. Create build.gradle file inside module and put there
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