Android build failing - Program type already present: android.support.v4.app.INotificationSideChannel

Hi,

Have Ionic changed the way it builds an Android project? The other week my project built fine. I have made some changes recently (upgraded a facebook login component) and it started failing with this error…

*** What went wrong:**
Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForRelease’.
**> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: **

I have since tried various builds using different commits and I ended up going right the way back to the commit that worked the last time I got a successful build and that now fails too.

Any ideas what is going on before I go mad?

Thanks
Alex

are you using cordova or capacitor?