flutterdartdeprecatedembeddinggeocoder

The plugin `geocoder` uses a deprecated version of the Android embedding


When I run pub get, I face the following error:

The plugin geocoder 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.


Solution

  • This is happening because of the latest flutter updated version 2.5. In my case I have downgraded my flutter version by command flutter downgrade and it shows an option of a downgraded flutter version and it resolves my error.