binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
121 stars 70 forks source link

Can't open a PDF with the following exception: No implementation found for long com.shockwave.pdfium.PdfiumCore.nativeOpenDocument(int, java.lang.String) (tried Java_com_shockwave_pdfium_PdfiumCore_nativeOpenDocument and Java_com_shockwave_pdfium_PdfiumCore_nativeOpenDocument__ILjava_lang_String_2) #11

Closed Nandan-Wewhare closed 4 years ago

binSaed commented 4 years ago

Hi @Nandan-Wewhare please provide more information about how u get this error

Nandan-Wewhare commented 4 years ago

@AbdOoSaed

body: Center( child: PDF( onPageChanged: (page, total) { setState(() { pageNumber = page+1??0; totalPages = total??0; }); }, swipeHorizontal: true, ).cachedFromUrl(widget.url),

This is the code and the url is a string

Nandan-Wewhare commented 4 years ago

@AbdOoSaed This is the PDF url and is working just fine.

https://firebasestorage.googleapis.com/v0/b/rtunotes.appspot.com/o/defaultuploads%2FFirst%20Year%2Fhough%20trnsform.pdf?alt=media&token=40be5a98-d66d-496a-a4f2-afea7f50ef03

Nandan-Wewhare commented 4 years ago

Did you find any solution for this? I need it asap please.

@AbdOoSaed

binSaed commented 4 years ago

please run this project with flutter run -v and give me the log if it doesn't work

Nandan-Wewhare commented 4 years ago

Hi @AbdOoSaed

It worked finally. I just deleted the build folder and built the project again and it works fine now. Thanks for your attention and time.

binSaed commented 4 years ago

don't forget most of the flutter issues fix by flutter clean 😅