Change package names of multimodule android library


We have the 4 modules android library project and we are trying to figure out if we can alter package names for each module in project. I have tried to use productFlavors however in library project it doesn’t seem to be possible to alter package name.

Please let me know if you have any advice or can share some ideas for this issue.