Skip to content

error: cannot find symbol import io.flutter.plugin.common.PluginRegistry.Registrar; #55

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

Open
iqfareez opened this issue Feb 20, 2025 · 4 comments

Comments

@iqfareez
Copy link

Error when compiling app

C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:11: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
  symbol:   class Registrar
  location: interface PluginRegistry
C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:12: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.ViewDestroyListener;
                                              ^
  symbol:   class ViewDestroyListener
  location: interface PluginRegistry
C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:13: error: cannot find symbol
import io.flutter.view.FlutterNativeView;
                      ^
  symbol:   class FlutterNativeView
  location: package io.flutter.view
C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:21: error: cannot find symbol
  public static void registerWith(Registrar registrar) {
                                  ^
  symbol:   class Registrar
  location: class FlutterWebBrowserPlugin
C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:28: error: cannot find symbol
        new ViewDestroyListener() {
            ^
  symbol:   class ViewDestroyListener
  location: class FlutterWebBrowserPlugin
C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:30: error: cannot find symbol
          public boolean onViewDestroy(FlutterNativeView view) {
                                       ^
  symbol: class FlutterNativeView
C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\FlutterWebBrowserPlugin.java:29: error: method does not override or implement a method from a supertype
          @Override
          ^
Note: C:\Users\Iqmal\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_web_browser-0.17.2\android\src\main\java\dev\vbonnet\flutterwebbrowser\MethodCallHandlerImpl.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors

Flutter version

Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 35c388afb5 (10 days ago) • 2025-02-10 12:48:41 -0800
Engine • revision f73bfc4522
Tools • Dart 3.7.0 • DevTools 2.42.2
@iqfareez
Copy link
Author

Perhaps related to #52

@huxaiphaer
Copy link

huxaiphaer commented Mar 5, 2025

@iqfareez , Would have been to provide solution here, the issue you are sending us too, is not so clear

@varpa89
Copy link

varpa89 commented Mar 5, 2025

I have the same issue

@piyush-agr44
Copy link

Hello,
Does anyone get any solution for this?
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

No branches or pull requests

4 participants