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

Compilation error with flutter version 3.29 #83

Closed
dvr69 opened this issue Feb 17, 2025 · 3 comments
Closed

Compilation error with flutter version 3.29 #83

dvr69 opened this issue Feb 17, 2025 · 3 comments

Comments

@dvr69
Copy link

dvr69 commented Feb 17, 2025

Hello,

Since I upgraded flutter to version 3.29, I have these compilation errors :

/home/damien/.pub-cache/hosted/pub.dev/nearby_connections-4.1.1/android/src/main/java/com/pkmnapps/nearby_connections/NearbyConnectionsPlugin.java:44: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
/home/damien/.pub-cache/hosted/pub.dev/nearby_connections-4.1.1/android/src/main/java/com/pkmnapps/nearby_connections/NearbyConnectionsPlugin.java:53: error: cannot find symbol
private static PluginRegistry.Registrar pluginRegistrar;
^
symbol: class Registrar
location: interface PluginRegistry
/home/damien/.pub-cache/hosted/pub.dev/nearby_connections-4.1.1/android/src/main/java/com/pkmnapps/nearby_connections/NearbyConnectionsPlugin.java:66: error: cannot find symbol
public static void registerWith(Registrar registrar) {
^
symbol: class Registrar
location: class NearbyConnectionsPlugin

It seems to be a known issue with this version of flutter and the Registrar class :

https://benamorn.medium.com/today-i-learned-after-upgrading-to-flutter-3-29-0-7c7ab1a97975

I upgraded the package to the version 4.2.0, but this doesn't solve the problem.

@dvr69
Copy link
Author

dvr69 commented Feb 17, 2025

I downgraded my flutter version to 3.27.4, and it works

@mannprerak2
Copy link
Owner

mannprerak2 commented Feb 17, 2025

I think we should remove these imports, they were deprecated for a while now.

I will try to pick this over the weekend, but feel free to make a PR for this if you want to :D

@mannprerak2
Copy link
Owner

Closed via #84 and released a new version which should fix the error - https://pub.dev/packages/nearby_connections (4.3.0)

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

2 participants