I\'m in trouble since yesterday. In my internship I faced the following build error, but I couldn\'t understand why :
$ cordova build android [...] FAILURE
With my Ionic 3 project it was enough to run:
ionic cordova plugin rm cordova-plugin-compat --force ionic cordova plugin add cordova-plugin-compat@1.2
And then run a build again. No need to remove and add the platform.