Kaloyan Roussev
Kaloyan Roussev

Reputation: 14711

Does the method count increase when two modules have the same dependencies in their gradle files?

My Android project consists of two modules

- app
- customModule

app module depends on customModule.

Both modules use AndroidAnnotations library, declared as a dependency in their build.gradle files.

My question is, does the famous 65k method count increase by the double the number of methods in AndroidAnnotations or only once?

Upvotes: 0

Views: 71

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 364506

If you are adding in your modules the dependencies with

compile 'com.android.support:support-annotations:23.X.X'

gradle handles it for you and adds the same dependency only once.

Upvotes: 1

Related Questions