I am working on a cordova project that has been working fine for a while, and suddenly I started to get a very strange error whenever the build reaches \":app:processArm64De
This happened to me in July 2020 on a Ionic V1 project, my way to fix it was to upgrade cordova-android from 7.1.4 to the most recent, which was 9.0.0 at the time, and also change the min android sdk version.
ionic cordova platform rm android
// if your project had much trouble building and you prefer a clean build, you may do:
// rm -rf node_modules platforms plugins package-lock.json
// npm install (and maybe npm audit fix later)
ionic cordova platform add android@latest
In config.xml, change or add this (the value 22 may be different in your time):
And finally I was able to build with
ionic cordova build --release android