Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Error: The plugin advance_pdf_viewer uses a deprecated version of the Android embedding #83

Open
kamleshwebtech opened this issue Sep 10, 2021 · 23 comments

Comments

@kamleshwebtech
Copy link

Getting below error at the time of running "flutter pub get":

Running "flutter pub get" in natureproject...               19.3s
The plugin `advance_pdf_viewer` 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.
exit code 0

Kindly suggest how can we fix it. Thanks a lot.

@premtemp1
Copy link

I am also getting the same error after upgrading flutter to the latest version

@Satyam-953
Copy link

me too

@bipindubey-technoark
Copy link

bipindubey-technoark commented Sep 13, 2021

I am also facing the same issue

flutter packages get
Running "flutter pub get" in linkinvestor-flutterapp-v2... 1,353ms
The plugins advance_pdf_viewer, flutter_full_pdf_viewer 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.

@bipindubey-technoark
Copy link

Anyone found any solution?

@Horace7
Copy link

Horace7 commented Sep 15, 2021

I have the same issue

@bipindubey-technoark
Copy link

I have downgraded flutter and then tried but it not worked.

@scherermathias
Copy link

I've also been having this problem.

@SebastienBtr
Copy link

Seems related to this PR: #49
Hopefully, it is going to be merged soon

Also the same issue as #82

@dmitry-grin
Copy link

Seems related to this PR: #49 Hopefully, it is going to be merged soon

Also the same issue as #82

Same here, this package is a good fit for our project! Though deprecated version of android embedding puts it away from using.
Hopefully you guys could resolve this soon.

@darshakpranpariya
Copy link

Please, upgrade this package as soon as possible.
Thanks in advance.

@alexaung
Copy link

alexaung commented Nov 1, 2021

Could you please fix this issue.

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

@mploigt
Copy link

mploigt commented Nov 19, 2021

This is the migration documentation: https://docs.flutter.dev/development/packages-and-plugins/plugin-api-migration

@premtemp1
Copy link

anyone find an alternative ?

@yunweneric
Copy link

Found a similar issue. Don't know how to go about sorting this out

The plugin advance_pdf_viewer` uses a deprecated version of the Android embedding.

@dzab5
Copy link

dzab5 commented Dec 26, 2021

any updates here? still getting the deprecation error

@elmariocarlos
Copy link

@lohanidamodar here another on the same topic. The errors on the build logs are basicaly around the Android V2 Embeding:

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

@elmariocarlos
Copy link

Hi team, I have contacted the Dev @lohanidamodar and he mentioned he would try to look at the issues between this and next week, just thought to check in :)

@Sergionexx
Copy link

Hello, were you able to solve the problem?

@alexaung
Copy link

It is not solved. But I use the git

advance_pdf_viewer: git: url: https://github.com/enveraltin/pdf_viewer.git

@Sergionexx
Copy link

It doesn't work for me, better to use this package: https://pub.dev/packages/pdf_render, it's easy to implement

@elmariocarlos
Copy link

Hi team, I have contacted the Dev @lohanidamodar and he mentioned he would try to look at the issues between this and next week, just thought to check in :)

@lohanidamodar I think the Merge requests from January did not include all of the fixes, as this is still causing important warnings on usage, as well as some issues have appeared where the plugin causes crashes. Do you thing there is a way we can get another merge of potencial solutions to critical bugs in? Thanks in advance for your reply.

@mploigt
Copy link

mploigt commented Apr 12, 2022

This package seems to be abandoned. Has anyone a good alternative?

@Sergionexx
Copy link

@mploigt
Hello, I recommend you to use this package https://pub.dev/packages/pdf_render, I have been using it in a project since January and I have not had any problems, and it is easy to customize, I hope it helps you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests