Help! Ionic build prod release error with PreDexForRelease but work with regular ionic build

Regular ionic build works, but when I try to build a prod error occurs, I tried to cordova clean android and cordova add android but still, same error persists. Hope someone can help me.

Here is the error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformClassesWithPreDexForRelease’.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex ‘C:\Users\Cedrick.gradle\caches\modules-2\files-2.1\xerces\xmlParserAPIs\2.6.2\65acede1e5305bd2b92213d7b5761328c6f4fd9\xmlParserAPIs-2.6.2.jar’ to ‘C:\xampp\htdocs\riderapp\platforms\android\app\build\intermediates\transforms\preDex\release\30.jar’

Here is my ionic info :

cli packages: (C:\Users\Cedrick\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v6.11.0
npm               : 3.10.10
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\Cedrick\AppData\Local\Android\sdk

Misc:

backend : pro

Here is my package.json

{
“name”: “riderapp”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
"@angular/common": “5.0.3”,
"@angular/compiler": “5.0.3”,
"@angular/compiler-cli": “5.0.3”,
"@angular/core": “5.0.3”,
"@angular/forms": “5.0.3”,
"@angular/http": “5.0.3”,
"@angular/platform-browser": “5.0.3”,
"@angular/platform-browser-dynamic": “5.0.3”,
"@ionic-native/background-geolocation": “^4.5.3”,
"@ionic-native/camera": “^4.5.3”,
"@ionic-native/core": “4.4.0”,
"@ionic-native/diagnostic": “^4.5.3”,
"@ionic-native/geolocation": “^4.5.3”,
"@ionic-native/location-accuracy": “^4.5.3”,
"@ionic-native/native-storage": “^4.5.3”,
"@ionic-native/network": “^4.5.3”,
"@ionic-native/sim": “^4.5.3”,
"@ionic-native/sms": “^4.5.3”,
"@ionic-native/splash-screen": “4.4.0”,
"@ionic-native/sqlite": “^4.5.3”,
"@ionic-native/sqlite-porter": “^4.5.3”,
"@ionic-native/status-bar": “4.4.0”,
"@ionic/pro": “1.0.20”,
"@ionic/storage": “2.1.3”,
“angular2-signaturepad”: “^2.7.0”,
“cordova-android”: “^7.0.0”,
“cordova-android-support-gradle-release”: “^1.2.0”,
“cordova-plugin-camera”: “^4.0.2”,
“cordova-plugin-device”: “^2.0.1”,
“cordova-plugin-geolocation”: “^4.0.1”,
“cordova-plugin-ionic-keyboard”: “^2.0.5”,
“cordova-plugin-ionic-webview”: “^1.1.16”,
“cordova-plugin-mauron85-background-geolocation”: “^2.3.3”,
“cordova-plugin-nativestorage”: “^2.3.1”,
“cordova-plugin-network-information”: “^2.0.1”,
“cordova-plugin-request-location-accuracy”: “^2.2.2”,
“cordova-plugin-sim”: “^1.3.3”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-sms-plugin”: “^0.1.11”,
“cordova-sqlite-storage”: “^2.2.1”,
“cordova.plugins.diagnostic”: “^4.0.3”,
“font-awesome”: “4.7.0”,
“ionic-angular”: “3.9.2”,
“ionicons”: “3.0.0”,
“lottie-angular2”: “0.0.9”,
“rxjs”: “5.5.2”,
“sw-toolbox”: “3.6.0”,
“uk.co.workingedge.cordova.plugin.sqliteporter”: “^1.0.2”,
“zone.js”: “0.8.18”
},
“devDependencies”: {
"@ionic/app-scripts": “3.1.8”,
“typescript”: “2.4.2”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-nativestorage”: {},
“cordova-sqlite-storage”: {},
“uk.co.workingedge.cordova.plugin.sqliteporter”: {},
“cordova-plugin-camera”: {},
“cordova-plugin-network-information”: {},
“cordova-plugin-geolocation”: {
“GEOLOCATION_USAGE_DESCRIPTION”: “Check location”
},
“cordova-plugin-mauron85-background-geolocation”: {},
“cordova.plugins.diagnostic”: {},
“cordova-plugin-request-location-accuracy”: {},
“cordova-plugin-whitelist”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-ionic-keyboard”: {},
“cordova-sms-plugin”: {},
“cordova-plugin-sim”: {},
“cordova-android-support-gradle-release”: {
“ANDROID_SUPPORT_VERSION”: “26.+”
}
},
“platforms”: [
“android”
]
}
}