Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Aug 20, 2020 · 7 comments

Comments

@Nandan-Wewhare
Copy link

Nandan-Wewhare commented Aug 20, 2020

No description provided.

@Nandan-Wewhare Nandan-Wewhare changed the title Can't open a PDF with the following exception: 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) Aug 20, 2020
@Nandan-Wewhare Nandan-Wewhare changed the title 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) 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) Aug 20, 2020
@binSaed
Copy link
Owner

binSaed commented Aug 20, 2020

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

@Nandan-Wewhare
Copy link
Author

Nandan-Wewhare commented Aug 20, 2020

@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
Copy link
Author

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

@AbdOoSaed

@binSaed
Copy link
Owner

binSaed commented Aug 21, 2020

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

@Nandan-Wewhare
Copy link
Author

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
Copy link
Owner

binSaed commented Aug 21, 2020

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

@binSaed binSaed closed this as completed Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants