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

Not found: 'dart:ffi' #1479

Closed
sergeyxo opened this issue Feb 11, 2022 · 4 comments · Fixed by #1480
Closed

Not found: 'dart:ffi' #1479

sergeyxo opened this issue Feb 11, 2022 · 4 comments · Fixed by #1480

Comments

@sergeyxo
Copy link

Target dart2js failed: Exception:
/c:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.3.0/lib/src/platform_specifics/android/notification_details.dart:1:8:
Error: Not found: 'dart:ffi'
import 'dart:ffi';

Flutter (Channel beta, 2.10.0-0.3.pre, on Microsoft Windows [Version 10.0.19043.1526], locale ru-RU)
• Flutter version 2.10.0-0.3.pre at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision fdd0af78bb (2 weeks ago), 2022-01-25 22:01:33 -0600
• Engine revision 5ac30ef0c7
• Dart version 2.16.0 (build 2.16.0-134.5.beta)
• DevTools version 2.9.2

and also in stable channel

How to fix?

@MaikuB
Copy link
Owner

MaikuB commented Feb 11, 2022

That import isn't used so whilst it can be removed from the plugin. Curious though, what platform were you target when you tried to build the app that ran into this issue?

@sergeyxo
Copy link
Author

build for web
debug and stable
flutter_local_notifications - not used in project

@MaikuB
Copy link
Owner

MaikuB commented Feb 11, 2022

Yep noticed the dart2js reference after I posted. This should now be fixed in 9.3.1. Thanks for reporting this

@sergeyxo
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants