Skip to content

Fails to build on Flutter 3.29.0+ (Android plugins APIs change) #18

Description

@mrnusa

Hi,

i have this error after upgrade to 3.29.1 (also in 3.29.0):

.pub-cache/hosted/pub.dev/http_proxy-1.2.2/android/src/main/java/com/lm/http_proxy/HttpProxyPlugin.java:9: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
.pub-cache/hosted/pub.dev/http_proxy-1.2.2/android/src/main/java/com/lm/http_proxy/HttpProxyPlugin.java:34: error: cannot find symbol
public static void registerWith(Registrar registrar) {
^
symbol: class Registrar
location: class HttpProxyPlugin
Note: .pub-cache/hosted/pub.dev/http_proxy-1.2.2/android/src/main/java/com/lm/http_proxy/HttpProxyPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':http_proxy:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

the package needs to be migrated:
https://docs.flutter.dev/release/breaking-changes/plugin-api-migration

thanks, for your help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions