Skip to content

The built failed likely due to AndroidX incompatibilities in a plugin.  #56693

Closed
@baski1978

Description

@baski1978

I am getting some plugin compatibility error while building my fluter fire store app using a mobilenumber plugin.

C:\flutter\fp\audience_poll\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:20: error: no suitable method found for add(MobileNumberPlugin)
    flutterEngine.getPlugins().add(new com.example.mobile_number.MobileNumberPlugin());
                              ^
    method PluginRegistry.add(FlutterPlugin) is not applicable
      (argument mismatch; MobileNumberPlugin cannot be converted to FlutterPlugin)
    method PluginRegistry.add(Set<FlutterPlugin>) is not applicable
      (argument mismatch; MobileNumberPlugin cannot be converted to Set<FlutterPlugin>)
1 error

FAILURE: Build failed with an exception.

BUILD FAILED in 8s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Finished with error: The plugin cloud_firestore could not be built due to the issue above.
[flutter build error.txt](https://github.com/flutter/flutter/files/4600442/flutter.build.error.txt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions