Two of the components of an android application depends on two different versions of the same Library. (google protobuf).
ie. Module 1 depends on protobuf2, while Module 2 needs protobuf3.
The required parts of the the two versions are mutually exclusive and hence not interchangeable.
So far gradle internally use the lastest version from the two versions and one module breaks at a missing method.
Is it possible to force gradle to use version 2 for the 2's dependent and version 3 for the 3's dependent? Or else what are the possible alternatives to address this sort of an issue?
Cheers.