Native plugin cordova camera v4

When adding cordova-camera plugin and try to build for android facing problem with the following error message…

Step 1: ionic cordova build android --debug

then the following error is displaying

Task :app:transformClassesWithMultidexlistForDebug FAILED
D8: Program type already present:$Delegate

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformClassesWithMultidexlistForDebug’. Error while generating the main dex list:
Error while merging dex archives:
Learn how to resolve the issue at
Program type already present:$Delegate

[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android --debug exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.