You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internationalizing Flutter Issue: Target of URI doesn't exist: 'package:flutter_localizations/flutter_localizations.dart'. #40154
Hello,
I'm trying to include the flutter_localizations package in my project.
When i import 'package:flutter_localizations/flutter_localizations.dart'. in my main.dart file, visual studio say: "Target of URI doesn't exist: 'package:flutter_localizations/flutter_localizations.dart'.".
I added the depencie in the pubspec.yaml file and ran the command flutter pub get . All the other packages under "dependencies" in pubspec.yaml file work.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
BondarenkoStas commentedon Sep 10, 2019
@campio97 Please try
flutter packages upgradeand then restart VScampio97 commentedon Sep 10, 2019
I restarted VS and now it works.
Thank you @BondarenkoStas.
ahmedmehanna commentedon Mar 24, 2020
First I tried
flutter packages upgradethen I got an errorSo, I fixed it by removing
intl 0.16.0package from pubspec.yamljimneylee commentedon Apr 8, 2020
Same to Android Studio. Just restart AS then click [get dependencies], and it works.

lock commentedon Apr 25, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.