-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
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.
pubspec.yaml
dependencies:
___flutter:
______sdk: flutter
___flutter_localizations:
______sdk: flutter
___flutter_cupertino_localizations: ^1.0.1 Doesn't work too.
.
.
.
flutter doctor -v
[√] Flutter (Channel dev, v1.8.4, on Microsoft Windows [Versione 10.0.18362.295], locale it-IT)
• Flutter version 1.8.4 at C:\flutter
• Framework revision 954714c967 (6 weeks ago), 2019-08-02 10:10:39 -0700
• Engine revision 26368225b5
• Dart version 2.5.0 (build 2.5.0-dev.1.0 bd049f5b53)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\Pietro\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = C:\Users\Pietro\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.38.0)
• VS Code at C:\Users\Pietro\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.4.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
No labels