Dynamic Feature Module google services issue when more than one DFM is added

I am working on modularizing our app and implementing Android’s new Dynamic Feature Modules for on-demand downloads. I was able to add feature1 successfully, however, when I add feature2, i get this error: [:feature1, :feature2] all package the same library [com.google.android.gms:play-services-location-license]. [:feature1, :feature2] all package the same library [com.google.firebase:firebase-messaging-license]. Multiple APKs packaging the same library…

Details