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

Compatibility Issue: fluttertoast: 8.2.8 with Latest Flutter SDK #545

Open
HananMustafa opened this issue Nov 23, 2024 · 7 comments
Open

Comments

@HananMustafa
Copy link

The latest version of fluttertoast (8.2.8) throws compilation errors due to the usage of deprecated APIs like PluginRegistry.Registrar and FlutterMain, which are incompatible with the latest Flutter SDK using Android embedding v2.

Error Details:
Unresolved reference: Registrar
Unresolved reference: FlutterMain

Steps to reproduce:
Upgrade Flutter to the latest version (3.27.0)
Add fluttertoast: 8.2.8 to the project.
Build the project.

@alfayej55
Copy link

I have read same problem. After updating the flutter sdk , it is not working for me either

@jahid012
Copy link

I also got that problem in my existing project. Is there any fix, please?

@a-babayev
Copy link

Same problem here

@SangWook16074
Copy link

SangWook16074 commented Dec 6, 2024

I also experienced the same error.

In my case, I updated the version of Flutter, and that version was not a stable version.

Flutter's stable version is 3.24. And Flutter recommend use stable version.

Run below command

flutter channel stable
flutter pub cache repair
flutter pub get

finally, I solved this problem.

@a-babayev
Copy link

I also experienced the same error.

In my case, I updated the version of Flutter, and that version was not a stable version.

Flutter's stable version is 3.24. And Flutter recommend use stable version.

Run below command

flutter channel stable flutter pub cache repair flutter pub get

finally, I solved this problem.

But the issue relates to latest version (3.27.0) @SangWook16074

@SangWook16074
Copy link

I also experienced the same error.

In my case, I updated the version of Flutter, and that version was not a stable version.

Flutter's stable version is 3.24. And Flutter recommend use stable version.

Run below command

flutter channel stable flutter pub cache repair flutter pub get

finally, I solved this problem.

But the issue relates to latest version (3.27.0) @SangWook16074

@a-babayev

you're right.

However, 3.27.0 is currently in beta. Maybe version 3.27.0 is not compatible with fluttertoast 8.2.8

I think we will have to use the stable version 3.24 for now.

@arc0489
Copy link

arc0489 commented Dec 9, 2024

Same problem here. Flutter 3.27+ has 3 warnings.. Unresolved reference: Registrar, FlutterMain, FlutterMain

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

No branches or pull requests

6 participants