Problem was happened after adding @ionic-native/fcm plugin

cordova build android
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.
[cordova] > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUİLD FAILED in 2s
[cordova] /Users/machd/Desktop/Namik/Mobile App/KargoDiem İonic/platforms/android/gradlew: Command failed with exit code 1 Error output:
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.
[cordova] > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUİLD FAILED in 2s
[ERROR] An error occurred while running subprocess cordova.

    cordova build android exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

Plugin List
cordova-plugin-3dtouch 1.3.8 “3D Touch”
cordova-plugin-background-mode 0.7.3 “BackgroundMode”
cordova-plugin-badge 0.8.8 “Badge”
cordova-plugin-camera 4.1.0 “Camera”
cordova-plugin-datepicker 0.9.3 “DatePicker”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-fcm-with-dependecy-updated 7.0.9 “Cordova FCM Push Plugin”
cordova-plugin-file 6.0.2 “File”
cordova-plugin-ionic-keyboard 2.2.0 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 4.2.0 “cordova-plugin-ionic-webview”
cordova-plugin-local-notification 0.9.0-beta.2 “LocalNotification”
cordova-plugin-networkinterface 2.0.0 “NetworkInterface”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-uniquedeviceid 1.3.2 “UniqueDeviceID”
cordova-plugin-whitelist 1.3.3 “Whitelist”

“ANDROID_FCM_VERSION”: “19.0.0”,
“ANDROID_GRADLE_TOOLS_VERSION”: “3.5.3”,
“ANDROID_GOOGLE_SERVICES_VERSION”: “4.3.3”,
“ANDROID_DEFAULT_NOTIFICATION_ICON”: “@mipmap/ic_launcher”

Hi, I had the same issue with fcm and any background plugin in ionic5 what I did is use the ionic native push to listen the fcm notifications. But if you are abre to make it work let me know

Same here. I spent days with no result…
I am on ionic 4 !!
Any help is welcomed…