Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Dependency to Multiple Modules in Android Studio

If I need to use some library in multiple modules and add the line

compile 'example.path_to_library' 

to both modules build.gradle, will it create only one instance of the library classes and point to that or each module will have 2 separate libraries of the same stuff?

like image 548
cowboy007 Avatar asked Dec 05 '25 12:12

cowboy007


1 Answers

it will create only one instance of the library classes and point to that.

The library will be downloaded in your External Libraries folder and both the modules will access the same library.

if it solves your problem..do check this answer as correct..thank you, have a good day :)

like image 129
dvs Avatar answered Dec 08 '25 05:12

dvs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!