lohanidamodar / pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS
https://pub.dev/packages/advance_pdf_viewer
BSD 3-Clause "New" or "Revised" License
61 stars 143 forks source link

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

Open kamleshwebtech opened 2 years ago

kamleshwebtech commented 2 years ago

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 commented 2 years ago

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

Satyam-953 commented 2 years ago

me too

bipindubey-technoark commented 2 years ago

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 commented 2 years ago

Anyone found any solution?

Horace7 commented 2 years ago

I have the same issue

bipindubey-technoark commented 2 years ago

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

scherermathias commented 2 years ago

I've also been having this problem.

SebastienBtr commented 2 years ago

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

Also the same issue as #82

dmitry-grin commented 2 years ago

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 commented 2 years ago

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

alexaung commented 2 years ago

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 commented 2 years ago

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

premtemp1 commented 2 years ago

anyone find an alternative ?

yunweneric commented 2 years ago

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 commented 2 years ago

any updates here? still getting the deprecation error

elmariocarlos commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

Hello, were you able to solve the problem?

alexaung commented 2 years ago

It is not solved. But I use the git

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

Sergionexx commented 2 years ago

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

elmariocarlos commented 2 years ago

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 commented 2 years ago

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

Sergionexx commented 2 years ago

@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