2.8.1 No implementation found for native nativeOpenDocument
See original GitHub issuePlease forgive not using latest version, but I have some 600 deployments out there using 2.8.1.
My problem is that some of them are not displaying the documents and some of them work fine. All are running the same version of the software. All are Android 4.2 tablets.
So, using this code:
final PDFView v = (PDFView) mainView.findViewById(R.id.pdf_layout);
v.fromFile(new File(Documents.currentDoc)).onRender(new OnRenderListener() {
@Override
public void onInitiallyRendered(int nbPages, float pageWidth, float pageHeight)
{
v.fitToWidth();
}
}).load();
Displaying the SAME PDF works fine on one tablet and not at all on another. Here’s what logcat says (for the non-working ones):
10:24:30.476 3859 4082 dalvikvm W No implementation found for native Lcom/shockwave/pdfium/PdfiumCore;.nativeOpenDocument:(ILja
va/lang/String;)J
10:24:30.486 3859 3859 PDFView E load pdf error
10:24:30.486 3859 3859 PDFView E java.lang.UnsatisfiedLinkError: Native method not found: com.shockwave.pdfium.PdfiumCore.nati
veOpenDocument:(ILjava/lang/String;)J
10:24:30.486 3859 3859 PDFView E at com.shockwave.pdfium.PdfiumCore.nativeOpenDocument(Native Method)
10:24:30.486 3859 3859 PDFView E at com.shockwave.pdfium.PdfiumCore.newDocument(PdfiumCore.java:113)
10:24:30.486 3859 3859 PDFView E at com.github.barteksc.pdfviewer.source.FileSource.createDocument(FileSource.java:38)
10:24:30.486 3859 3859 PDFView E at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:53)<
/span>
10:24:30.486 3859 3859 PDFView E at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:25)<
/span>
10:24:30.486 3859 3859 PDFView E at android.os.AsyncTask$2.call(AsyncTask.java:287)
10:24:30.486 3859 3859 PDFView E at java.util.concurrent.FutureTask.run(FutureTask.java:234)
10:24:30.486 3859 3859 PDFView E at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
10:24:30.486 3859 3859 PDFView E at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
10:24:30.486 3859 3859 PDFView E at java.lang.Thread.run(Thread.java:856)
Any hints as to what might be wrong here? It’s not a problem moving to a newer version if this is a known issue, but I’d sure like to know what’s going on too, if at all possible.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
Android NDK C++ JNI (no implementation found for native...)
There are a couple of things that can lead to "no implementation found". One is getting the function prototype name wrong, another is...
Read more >No implementation found in library module - Android/Java
I am trying to build a library(sdk/aar) which uses native code within library. But I am getting error like 'java.lang.
Read more >Changelog for pandoc-2.8.1 - Hackage - Haskell.org
If native_numbering extension is set, use native OpenDocument enumeration for ... ensure temp file is deleted even if the pdf program is not...
Read more >2.8.1 No implementation found for native nativeOpenDocument ...
My problem is that some of them are not displaying the documents and some of them work fine. All are running the same...
Read more >Android NDK C++ JNI (no implementation found for native...)
Android : Android NDK C++ JNI ( no implementation found for native...) [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you are using ProGuard, add following rule to proguard config file:
-keep class com.shockwave.** { *; }
then clean & rebuild project.
replace “com.github.barteksc:android-pdf-viewer:3.2.0-beta.1” with “com.github.barteksc:android-pdf-viewer:2.8.2”, then restore to “com.github.barteksc:android-pdf-viewer:3.2.0-beta.1”, issue fixed