How to fix “Program type already present” error when dynamic feature is using an external aar dependency
问题 We have a 3rd party aar file that due to size considerations we decided to split to a separate dynamic-feature (module). Both main app and dynamic module are using com.google.code.gson:gson when they were in the same module we removed our dependency to gson , but now our main module needs it. The project build is fine, but when we try to build bundle(s) we get a "Program type already present: com.google.gson.FieldNamingPolicy$5" error We tried to exclude gson from the module's gradle: both in