How can gradle resolve the same lib with different version twice, and use both at runtime?

Solved,

The problem was a huge dependency mismatch. Also, constants (f.e. in kotlin using const val) are saved as compile values instead of making reference to the actual constant (such as with val) in the referenced library.

If you need to change behavior of app by updating only the constants file in a library, be sure that the constant is not declared as such and instead use non variable values that are accessed through get method.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top