Closed bhaskaraa45 closed 1 month ago
You can check out this thread stating similar problem and try out the suggested solutions - https://stackoverflow.com/questions/27217278/could-not-find-a-file-named-pubspec-yaml-in
We tested it on both Ubuntu 23.04 & 24.04.1 at our end and it is working perfectly fine
$ flutter upgrade
Flutter is already up to date on channel stable
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (5 days ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
$ flutter pub get
Resolving dependencies... (33.2s)
Downloading packages... (9.2s)
_fe_analyzer_shared 72.0.0 (74.0.0 available)
analyzer 6.7.0 (6.9.0 available)
bidi 2.0.10 (2.0.12 available)
build_runner_core 7.3.1 (7.3.2 available)
collection 1.18.0 (1.19.0 available)
coverage 1.9.0 (1.9.2 available)
crypto 3.0.3 (3.0.5 available)
! extended_text_field 16.0.0 (overridden)
ffi 2.1.2 (2.1.3 available)
file_selector_android 0.5.1+5 (0.5.1+7 available)
flex_seed_scheme 1.5.0 (3.3.0 available)
http_parser 4.0.2 (4.1.0 available)
just_audio_mpv 0.1.7 (discontinued replaced by just_audio_media_kit)
just_audio_web 0.4.11 (0.4.12 available)
leak_tracker 10.0.5 (10.0.7 available)
leak_tracker_flutter_testing 3.0.5 (3.0.8 available)
macros 0.1.2-main.4 (0.1.3-main.0 available)
material_color_utilities 0.11.1 (0.12.0 available)
mime 1.0.5 (1.0.6 available)
path_provider_android 2.2.9 (2.2.10 available)
pdf 3.11.0 (3.11.1 available)
! pdf_widget_wrapper 1.0.4 (overridden)
screen_retriever 0.1.9 (0.2.0 available)
shelf 1.4.1 (1.4.2 available)
shelf_static 1.1.2 (1.1.3 available)
shelf_web_socket 1.0.4 (2.0.0 available)
source_map_stack_trace 2.1.1 (2.1.2 available)
string_scanner 1.2.0 (1.3.0 available)
test 1.25.7 (1.25.8 available)
test_api 0.7.2 (0.7.3 available)
test_core 0.6.4 (0.6.5 available)
url_launcher_android 6.3.8 (6.3.10 available)
url_launcher_linux 3.1.1 (3.2.0 available)
video_player_android 2.6.0 (2.7.3 available)
! web 0.5.1 (overridden) (1.0.0 available)
web_socket_channel 2.4.5 (3.0.1 available)
win32 5.5.3 (5.5.4 available)
Got dependencies!
1 package is discontinued.
34 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Describe the bug/problem
When running the command
flutter pub get
, I encountered an error related to missing files in the dependencyflutter-desktop-embedding
or potentially an unpublished package.Error message:
Steps to Reproduce the bug/problem
flutter pub get.
Expected behavior
The
flutter pub get
command should successfully resolve dependencies, ensuring that all required files are available, including the plugins/window_size from theflutter-desktop-embedding
plugin or any unpublished packages.Device Info (The device where you encountered this issue)
Flutter Doctor
Please run the
flutter doctor -v
command and provide the details below: