I want to exclude some packages from build path as they are not required by that flavour
I found this link that says to exclude class
But that requires 'java' plugin. If I apply java plugin it says it is not compatible with android plugin. So how do I exclude package from build.
I am using 'com.android.application' plugin.
Edit: WHY ?
I have got Product A consisting of feature 1, feature 2, feature 3. Now we want to create Project B containing only feature 1. Project C containing only feature 2.
I was able to achieve it partially by creating variant. But the apk for Project B and Project C is nearly as big as Project A. I need a way to remove unused code. Is there any way to achieve this ? Or should I be taking another approach ?