I solved this problem by removing the android platform and adding it again:
cordova platform remove android
then
cordova platform add android
Make sure to update this line too in platforms/android/app/src/main/AndroidManifest.xml
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="26" />
Lingbo Tang
2 people have this problem