I have an Android project that depends on different modules, and each module depends on a different version of the android support-v4 support library.
1) My application also depends on the latest android support-support library v4 (revision 21), so in this build.gralde I put this line:
dependencies { compile 'com.android.support:support-v4:21.0.0' }
2) The Facebook SDK module (v.3.15), which also depends on the v4 support library for Android, but in version 13 and the build.gradle file it says:
dependencies { compile 'com.android.support:support-v4:13.0.+' compile files('../libs/bolts.jar') }
3) and another module, which in this case can be called Module3, also depends on support-v4, but with a different version than other modules, for example:
dependencies { compile 'com.android.support:support-v4:19.0.+' compile files('../libs/bolts.jar') }
Questions:
1) How does gradle handle different versions of the v4 support library?
2) What is he doing exactly?
3) What does this mean in terms of apk size?
source share