I am trying to install geocoder: ^0.2.1 plugin in my project to search for different location in google map. but I am not able to install and getting 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.
geocoder has not yet been migrated to null safety and android V2 embedding.
You need to wait for author to update it, until then you can use the library github version which supports the v2 embedding
Please use this repo => https://github.com/nguyenxdat/flutter_geocoder
Import in pubspec.yaml
geocoder: git: url: https://github.com/nguyenxdat/flutter_geocoder.git ref: master
Note: It's better if you switch a well maintained library, see if these does your work geolocator , geocoding
Related
I'm using the tflite plugin for Flutter, but when it shows me this when I run it:
The plugin tflite 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.
Does anyone know a solution for this? I'm using tflite 1.1.2.
I rather not switch to tflite_flutter 0.9.0 if possible..
The plugin flutter_webview_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 a plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
This issue has already been raised on Github https://github.com/fluttercommunity/flutter_webview_plugin/issues/921
but as of now, I am unable to change this library to any other because my project is already in the deployment phase.
The plugins advance_pdf_viewer, flutter_webview_plugin 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."
I follow some documentation but is still not working.
i upgrade and downgrade my version but still not working.
should I share my mainActivity.kt and manifest file?
if there is no newer version of advance_pdf_viewer, flutter_webview_plugin available with the new android V2 embedding, your can't do anything inside of your app. Keep watching for plugin updates of these 2 plugins... or go to it's github project and open an issue to fix it. Sometime the master branch has already fix it. In this case you could try to link direct to the master branch and not to a version in pub.dev
for advance_pdf_viewer i use $flutter pub add advance_pdf_viewer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
advance_pdf_viewer: ^2.0.1
Alternatively, your editor might support or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:advance_pdf_viewer/advance_pdf_viewer.dart';
and for webview I try dependencies:
flutter_webview_plugin:
git: https://github.com/nuc134r/flutter_webview_plugin.git
and it all works for me than you.
When I ran flutter run, I got the following error:
flutter_audio_recorder, storage_path 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.
How can I solve this?
flutter_audio_recorder' and 'storage_path are the package names I use.
I want to add Audioplayer package for my xylophone app but on running it, I get this following error:
The plugins audioplayers, path_provider 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.
I was having the same problem while using audioplayers library. So, after looking up on the internet I found out that I was using the old version of the dependency of audio player. So, I suggest you to check for the latest version of audioplayers library from https://pub.dev/packages/audioplayers, and add it in your dependency as
dependencies:
audioplayers: ^0.20.1
(For me it was 0.20.1). You can check for latest to avoid error. Hope it works for you.