I had the same error when I cloned my repository from another project. I solved it by removing the platforms and adding it again.
remove : cordova platform rm android
add : cordova platform add android
I had the same error when I cloned my repository from another project. I solved it by removing the platforms and adding it again.
remove : cordova platform rm android
add : cordova platform add android