This error occurs when flutter pub get
or flutter run
**
The plugin
libphonenumber
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.**
**
The plugin libphonenumber 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.
The plugin libphonenumber 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.
The plugins `facebook_audience_network, flutter_statusbarcolor_ns, flutter_webview_plugin, notification_permissions, onesignal_flutter, sms_autofill` use a deprecated version of the Android embedding. To avoid unexpected runtime failures or future build failures, try to see if these plugins support the Android V2 embedding.
To avoid unexpected runtime failures or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
This issue is usually encountered when your project uses Flutter 2.5 and above. Literally, it means one or more packages used in your project, libphonenumber in your case, hasn't been upgraded to use Android v2 embedding. The error won't stop your code from running. If you're the package creator, you can follow this link to read more on Flutter plugin migration
if you are using this package intl_phone_number_input then update to latest version. hopefully it will fix this issue.
Seems like this package hasen't been upgraded yet. A workaround is listed on the plugins issue page: https://github.com/natintosh/intl_phone_number_input/issues/279
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With