I’m getting issue follow while taking android build.
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug’
Task :CordovaLib:compileDebugShaders UP-TO-DATE Task :CordovaLib:generateDebugAssets UP-TO-DATE Task :CordovaLib:packageDebugAssets UP-TO-DATE Task :app:mergeDebugAssets Task :app:validateSigningDebug UP-TO-DATE Task :app:signingConfigWriterDebug UP-TO-DATE Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED D8: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
Try: 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.
Get more help at https://help.gradle.org
BUILD FAILED in 22s 35 actionable tasks: 3 executed, 32 up-to-date /Users/panmoh/Documents/mobile-app/platforms/android/gradlew: Command failed with exit code 1 Error output: D8: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
Try: 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.
Get more help at https://help.gradle.org
BUILD FAILED in 22s [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.
Note : I tried cordova clean android
and remove and add android platfoem as well