FAILURE: Build completed with 2 failures.
It happened to me before i solved it by the following steps: 1- Updating the program 2- Updating flutter 3- Copying the files from old project to a new one