Home > Mobile >  How can I fix Flutter_localizations error on the vscode? - Target of URI doesn't exist
How can I fix Flutter_localizations error on the vscode? - Target of URI doesn't exist

Time:10-15

I'm trying to use flutter_localizations and I followed this AppLocalizations Error

CodePudding user response:

Use this command and Open command palette - command shift p on the vscode.

Type Dart: Restart Analysis Server and select it.

This error will be gone.

CodePudding user response:

Usually running

flutter gen-l10n

should be enough, however sometimes I'va found myself using

flutter clean && flutter pub get dependencies && flutter packages get

To clean cache, and get the dependencies(which also generate the l10n). 95% of the time the first command should suffice

  • Related