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
None of the above solutions worked for me. For me the solution was upgrading gradle. I was using gradle 5.6.2. Updating to 5.6.4 then removing and adding my android platform and plugins did the trick.
brew upgrade gradle
Install / upgrade gradle on Mac OS X
rm -rf plugins/*
cordova platform rm android
cordova platform add android