Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The plugins `XXXXX` use a deprecated version of the Android embedding

i was trying to get my dependences using pub get, but i keep getting a bunch off errors. And i'm stuck in these error.

I have tried flutter clean, flutter upgrade and flutter doctor without any issue. Then i tried flutter pub cache repair witch gave me this error Failed to reactivate 1 package: - intl_utils pub finished with exit code 69

Full error

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. Otherwise, consider removing them 
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.

MY PUBSPEC.YAML

environment:
  sdk: '>=2.12.0 <3.0.0'

facebook_audience_network: 1.0.0-nullsafety.0

flutter_statusbarcolor_ns: 0.3.0-nullsafety
flutter_webview_plugin: 0.4.0
notification_permissions: 0.5.0
onesignal_flutter: 3.2.0
sms_autofill: 2.0.1
...
like image 492
Soto-kun Avatar asked Aug 25 '21 09:08

Soto-kun


2 Answers

This is for the new flutter update. There is nothing you can do. Either use an other package or ask the package developer to fix the problem. This error is after version 2.5 of the flutter.

like image 72
moein runApp MyApp Avatar answered Sep 17 '22 01:09

moein runApp MyApp


That is because of the new flutter updates, but it won't stop you from building or running your code. or you could just switch to another package that can achieve the same task. Until the packages author update to v2 Android embedding

like image 30
Toby William Avatar answered Sep 19 '22 01:09

Toby William