Plugins errors after update cordova-android to 12

I updated cordova-android to version 12, but I can no longer build the Android platform. Errors are displayed in all the plugins:

Failed to install ‘cordova-custom-config’: Error: cmd: Command failed with exit code 1 Error output: ‘C:\project\platforms\android\cordova\version’ is not recognized as an internal or external command, operable program or batch file.
at ChildProcess.whenDone (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1090:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Failed to restore plugin “cordova-custom-config” from config.xml. You might need to try adding it again. Error: Error: cmd: Command failed with exit code 1

This error repeats for each plugin in config.xml.

This error appears at the end:

Saving android@~12.0.0 into config.xml file …
[ERROR] ShellCommandError: Non-zero exit from subprocess. { name: ‘ShellCommandError’, code:
‘ERR_ICF_SHELL_NON_ZERO_EXIT’, exitCode: 1, signal: undefined } Error

I’ve already tried deleting the ‘platforms’ and ‘plugins’ folders. I’ve also tried removing the plugins from config.xml.

Is there anything else I can do to perform this Android build?

My package.json:

{
“name”: “app”,
“version”: “0.0.18”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build --prod”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
@angular/common”: “4.4.7”,
@angular/compiler”: “4.4.7”,
@angular/compiler-cli”: “4.4.7”,
@angular/core”: “4.4.7”,
@angular/forms”: “4.4.7”,
@angular/http”: “4.4.7”,
@angular/platform-browser”: “4.4.7”,
@angular/platform-browser-dynamic”: “4.4.7”,
@ionic-native/app-version”: “^4.20.0”,
@ionic-native/camera”: “^4.5.2”,
@ionic-native/core”: “^4.11.0”,
@ionic-native/date-picker”: “^4.20.0”,
@ionic-native/geolocation”: “^4.20.0”,
@ionic-native/splash-screen”: “4.3.2”,
@ionic-native/status-bar”: “4.3.2”,
@ionic-native/vibration”: “^4.20.0”,
@ionic/storage”: “2.0.1”,
“brmasker-ionic-3”: “^1.6.3”,
“cordova-android”: “^12.0.0”,
“cordova-custom-config”: “^5.1.1”,
“cordova-ios”: “^4.4.0”,
“cordova-plugin-app-version”: “^0.1.14”,
“cordova-plugin-camera”: “^4.0.2”,
“cordova-plugin-compat”: “^1.2.0”,
“cordova-plugin-datepicker”: “^0.9.3”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-geolocation”: “~2.4.3”,
“cordova-plugin-ionic-webview”: “^1.1.16”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-vibration”: “^2.1.6”,
“cordova-plugin-whitelist”: “^1.3.1”,
“ion”: “^1.0.1”,
“ionic-angular”: “3.9.2”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“node-gyp”: “^9.4.0”,
“rxjs”: “^5.5.11”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.18”
},
“devDependencies”: {
@ionic/app-scripts”: “3.0.1”,
“node-sass”: “7.0.3”,
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-vibration”: {},
“cordova-plugin-datepicker”: {},
“cordova-plugin-device”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“cordova-plugin-geolocation”: {
“GEOLOCATION_USAGE_DESCRIPTION”: " "
},
“cordova-plugin-camera”: {},
“cordova-plugin-compat”: {},
“cordova-custom-config”: {},
“cordova-plugin-app-version”: {}
},
“platforms”: [
“android”
]
}
}

Ionic info:

Ionic:

ionic (Ionic CLI) : 4.0.0-rc.13 (C:\Users\Victor\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.0.1

Cordova:

cordova (Cordova CLI) : not installed
Cordova Platforms : android broken

System:

NodeJS : v17.9.1 (C:\Program Files\nodejs\node.exe)
npm : 8.11.0
OS : Windows 10

Environment:

ANDROID_HOME : not set

It’s telling you which plugin is the issue.