djthorpe / flutter

Flutter application examples
Apache License 2.0
6 stars 21 forks source link

Mdns uses a deprecated version of the Android embedding #59

Open guyluz11 opened 2 years ago

guyluz11 commented 2 years ago

After importing the mdns_plugin to my project and running pub get I am getting the following error

The plugin `mdns_plugin` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Can we update it and push a new version to pub.dev, or is it more complicated than that?.

guyluz11 commented 2 years ago

Found pr for that already #58. Guess there's no choice but to wait for it to get accepted

atrope commented 2 years ago

@guyluz11 meanwhile you can use like this:

mdns_plugin:
    git:
      url: https://github.com/SuaMusica/flutter
      path: mdns_plugin
      ref: feature/nullsafe