Reputation: 487
when i put admob_flutter: ^2.0.0-nullsafety.1
in pubspec, and type on cmd flutter pub get this error occurs!
The plugin admob_flutter
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.
Upvotes: 0
Views: 4021
Reputation: 1210
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.
Upvotes: 1
Reputation: 2118
It's for latest flutter updates. so you can't do anything. Please use other package or wait till fix the problem by package developer because this error is produced after flutter version 2.5.
Upvotes: 2