Skip to content

[agconnect_remote_config] error: cannot find symbol import io.flutter.plugin.common.PluginRegistry.Registrar #20

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
sDobrzanski opened this issue Feb 27, 2025 · 1 comment

Comments

@sDobrzanski
Copy link

sDobrzanski commented Feb 27, 2025

With Flutter version 3.29.0 Registrar API has been removed. Library should be updated to use the FlutterPlugin API instead.

/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/src/main/java/com/huawei/agconnectremoteconfig/AGConnectRemoteConfigPlugin.java:39: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
  symbol:   class Registrar
  location: interface PluginRegistry
/.pub-cache/hosted/pub.dev/agconnect_remote_config-1.9.0+300/android/src/main/java/com/huawei/agconnectremoteconfig/AGConnectRemoteConfigPlugin.java:52: error: cannot find symbol
    public static void registerWith(Registrar registrar) {
                                    ^
  symbol:   class Registrar
  location: class AGConnectRemoteConfigPlugin
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':agconnect_remote_config:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
@JaponBaligi
Copy link

JaponBaligi commented Mar 18, 2025

It is about deprecation of v1 api's. At this point you need to remove them by your own copy or waiting for an update from developers, and the best advice i can give is try to remove those deprecated api's. Because they removed documentation for flutter about this package. Another way is use REST API for linking your app to Cloud DB.

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