For me, it was inconsistent naming. I had typed i18n instead of l10n in the l10n.yaml file.
arb-dir: lib/l10n/arb
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
nullable-getter: false
synthetic-package: false
output-dir: lib/l10n/gen