I had this problem the other day. It related to conflicting plugins for me. I can’t remember the exact steps I took to solve, but I know I did something along the lines of checking all my plugins and then removing and re-adding the android platform.
Actually now that I’m thinking about it, check and see if the cordova-plugin-compat is installed. There are lots of posts around about how this plugin now conflicts with the latest version of cordova. Check around the forums, and I even believe there is a pinned support piece on the topic.