You should recreate your android directory in project. Just run in flutter project directory:
android
rm -rf android flutter create .
and reapply previous changes in android directory files