Snake
Snake

Reputation: 14668

Same dependency in 2 modules

if you have 2 modules that has dependency on support v14 do you put the same dependency in both modules or you put it in one? I mean does it make the apk include the code twice and hit the 65 k limit

Thanks

Upvotes: 0

Views: 691

Answers (1)

Henry
Henry

Reputation: 43778

Put the dependency in every module that needs it. Doing so makes the modules more independent. You can reuse a module in another project without having to worry about the dependencies. It will be included in the APK only once.

Upvotes: 6

Related Questions