Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Dart_LookupLibrary: library 'packagename/utils/fcm.dart' not found. #9568

Closed
Zeinab-Kouhkan opened this issue Sep 19, 2022 · 2 comments
Labels
resolution: duplicate This issue or pull request already exists type: bug Something isn't working

Comments

@Zeinab-Kouhkan
Copy link

Zeinab-Kouhkan commented Sep 19, 2022

Bug report

Describe the bug
Those error happen on start up application and when received the notification from background in release mode. Foreground notification work well.


Additional context

FirebaseMessaging is called in fcm class


Flutter doctor

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.3.0, on Microsoft Windows [Version 10.0.19044.2006], locale en-US)
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Enterprise 2022 17.2.6)
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK
[√] Android Studio (version 2021.2)
[√] Connected device (4 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

Flutter dependencies

Click To Expand
environment:
  sdk: ">=2.17.6 <3.3.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  flutter_svg: ^0.22.0
  fl_chart: ^0.55.0
  intl: ^0.17.0
  rxdart: ^0.27.3
  shared_preferences: ^2.0.15
  fluttertoast: ^8.0.9
  retrofit: ^3.0.1+1
  logger: ^1.1.0
  json_annotation: ^4.5.0
  package_info_plus: ^1.4.2
  device_info_plus: ^3.2.3
  firebase_core: ^1.17.0
  firebase_crashlytics: ^2.8.0
  firebase_analytics: ^9.1.8
  firebase_messaging: ^12.0.0
  awesome_notifications: ^0.6.21
  android_intent: ^2.0.2
  device_apps: ^2.2.0
  syncfusion_flutter_gauges: ^20.1.61
  connectivity_plus: ^2.3.0
  need_resume: ^1.0.6
  cached_network_image: ^3.1.0
  shamsi_date: ^0.15.0
  liquid_progress_indicator: ^0.4.0
  persian_number_utility: ^1.1.1
  flutter_custom_tabs: ^1.0.4
  substring_highlight: ^1.0.33
  app_settings: ^4.1.6
  open_store: ^0.2.4
  marquee: ^2.2.0
  flutter_html: ^2.0.0
  url_launcher: ^6.1.5
  image_picker: ^0.8.5+3
  path_provider: ^2.0.10
  file_picker: ^4.5.1
  filesize: ^2.0.1
  open_filex: ^3.4.0
  share_plus: ^4.0.4
  google_sign_in: ^5.3.1
  devicelocale: ^0.5.2
  tapsell_plus: ^2.1.7
  google_mobile_ads: ^2.0.1
  chewie: ^1.3.3
  video_player: ^2.4.2
  carousel_slider: ^4.1.1
  flutter_web_frame: ^0.0.3
  universal_io: ^2.0.4
  flutter_linkify: ^5.0.2
  uuid: ^3.0.6
  progress_indicators: ^1.0.0
  url_strategy: ^0.2.0
  flutter_math_fork: ^0.4.2+2
  sms_autofill: ^2.2.0
  visibility_detector: ^0.3.3
  steps_indicator: ^1.3.0
  flutter_staggered_grid_view: ^0.6.1
  audioplayers: ^0.20.1
  wakelock: ^0.6.1+2
  permission_handler: ^9.2.0
  idb_sqflite: ^1.1.0
  sqflite_common_ffi: ^2.1.1
  sqflite: ^2.0.2+1
  universal_html: ^2.0.8
  metrix_plugin: ^1.4.2
  just_audio: ^0.9.27
  flick_video_player: ^0.5.0
  dotted_border: ^2.0.0


dependency_overrides:
  provider: ^6.0.3

dev_dependencies:
  flutter_lints: ^1.0.4
  json_serializable: ^6.2.0
  retrofit_generator: ^4.0.1
  build_runner: ^2.1.11
  device_preview: ^1.1.0
  flutter_test:
    sdk: flutter


@Zeinab-Kouhkan Zeinab-Kouhkan added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Sep 19, 2022
@SarahGhorbani
Copy link

SarahGhorbani commented Sep 19, 2022

Same as me!

@darshankawar darshankawar added the triage Issue is currently being triaged. label Sep 20, 2022
@darshankawar
Copy link

darshankawar commented Sep 20, 2022

@Zeinab-Kouhkan @SarahGhorbani

Can you try the solution as mentioned #9446 (comment).

Use the solution mentioned which should resolve the issue. Closing for now as this is already fixed. If it doesn't resolve the error, write in comments and I'll reopen it.

@darshankawar darshankawar added resolution: duplicate This issue or pull request already exists and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Sep 20, 2022
@firebase firebase locked and limited conversation to collaborators Oct 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate This issue or pull request already exists type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants