I’m getting issue follow while taking android build.
Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’
Task :app:compileDebugNdk NO-SOURCE
Task :app:compileDebugSources
Task :app:mergeDebugShaders
Task :app:compileDebugShaders
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Task :app:generateDebugAssets
Task :CordovaLib:mergeDebugShaders
Task :CordovaLib:compileDebugShaders
Task :CordovaLib:generateDebugAssets
Task :CordovaLib:packageDebugAssets
Task :app:mergeDebugAssets
Task :app:validateSigningDebug
Task :app:signingConfigWriterDebug
Task :app:transformClassesWithDexBuilderForDebug
Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
D8: Program type already present: android.support.v4.app.INotificationSideChannel
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 Adicionar dependências de compilação | Android Studio | Android Developers.
Program type already present: android.support.v4.app.INotificationSideChannel
-
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 4s
35 actionable tasks: 33 executed, 2 up-to-date
/Users/panmoh/Documents/mobile-app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: /Users/panmoh/Documents/mobile-app/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
D8: Program type already present: android.support.v4.app.INotificationSideChannel
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 Adicionar dependências de compilação | Android Studio | Android Developers.
Program type already present: android.support.v4.app.INotificationSideChannel
-
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 4s
[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 : cordova clean android & remove and add android platform also not working.