java.lang.UnsatisfiedLinkError: No implement

I’m being unable to start the ViewerActivity of CompleteReader from a new Android Project which only has a button that starts the activity. I don’t made any changes to the original CompleteReader nor PDFViewCtrlTools, reimported both project again a few times, tried all that I could try, cleaning, etc. but it’s not wokring.

Attached the project causing the problem. This project references the CompleteReader Project, PDFViewCtrlTools, the beta version, and android-support-v7-appcompat, they are not included in the zip because otherwise it would be to big.
Do you have any idea what am I missing?

09-25 15:17:44.401: I/am_on_paused_called(18934): [0,com.example.test.MainActivity]
09-25 15:17:44.464: E/art(18934): No implementation found for long[] pdftron.PDF.PDFViewCtrl.PDFViewCtrlCreate(pdftron.PDF.PDFViewCtrl$RenderCallback) (tried Java_pdftron_PDF_PDFViewCtrl_PDFViewCtrlCreate and Java_pdftron_PDF_PDFViewCtrl_PDFViewCtrlCreate__Lpdftron_PDF_PDFViewCtrl_00024RenderCallback_2)
09-25 15:17:44.464: D/AndroidRuntime(18934): Shutting down VM
09-25 15:17:44.466: E/AndroidRuntime(18934): FATAL EXCEPTION: main
09-25 15:17:44.466: E/AndroidRuntime(18934): Process: com.example.test, PID: 18934
09-25 15:17:44.466: E/AndroidRuntime(18934): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.pdftron.pdfnet.demo.completereader.viewer.ViewerActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class com.pdftron.pdfnet.demo.completereader.viewer.CompleteReaderPDFViewCtrl
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2255)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2317)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.ActivityThread.access$800(ActivityThread.java:143)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.os.Handler.dispatchMessage(Handler.java:102)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.os.Looper.loop(Looper.java:135)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.ActivityThread.main(ActivityThread.java:5070)
09-25 15:17:44.466: E/AndroidRuntime(18934): at java.lang.reflect.Method.invoke(Native Method)
09-25 15:17:44.466: E/AndroidRuntime(18934): at java.lang.reflect.Method.invoke(Method.java:372)
09-25 15:17:44.466: E/AndroidRuntime(18934): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
09-25 15:17:44.466: E/AndroidRuntime(18934): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)
09-25 15:17:44.466: E/AndroidRuntime(18934): Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class com.pdftron.pdfnet.demo.completereader.viewer.CompleteReaderPDFViewCtrl
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.createView(LayoutInflater.java:629)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:739)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.inflate(LayoutInflater.java:500)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.inflate(LayoutInflater.java:410)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.inflate(LayoutInflater.java:361)
09-25 15:17:44.466: E/AndroidRuntime(18934): at com.pdftron.pdfnet.demo.completereader.viewer.ViewerActivity.initViewerLayout(ViewerActivity.java:289)
09-25 15:17:44.466: E/AndroidRuntime(18934): at com.pdftron.pdfnet.demo.completereader.viewer.ViewerActivity.onCreate(ViewerActivity.java:175)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.Activity.performCreate(Activity.java:5720)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)
09-25 15:17:44.466: E/AndroidRuntime(18934): … 10 more
09-25 15:17:44.466: E/AndroidRuntime(18934): Caused by: java.lang.reflect.InvocationTargetException
09-25 15:17:44.466: E/AndroidRuntime(18934): at java.lang.reflect.Constructor.newInstance(Native Method)
09-25 15:17:44.466: E/AndroidRuntime(18934): at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
09-25 15:17:44.466: E/AndroidRuntime(18934): at android.view.LayoutInflater.createView(LayoutInflater.java:603)
09-25 15:17:44.466: E/AndroidRuntime(18934): … 20 more
09-25 15:17:44.466: E/AndroidRuntime(18934): Caused by: java.lang.UnsatisfiedLinkError: No implementation found for long[] pdftron.PDF.PDFViewCtrl.PDFViewCtrlCreate(pdftron.PDF.PDFViewCtrl$RenderCallback) (tried Java_pdftron_PDF_PDFViewCtrl_PDFViewCtrlCreate and Java_pdftron_PDF_PDFViewCtrl_PDFViewCtrlCreate__Lpdftron_PDF_PDFViewCtrl_00024RenderCallback_2)
09-25 15:17:44.466: E/AndroidRuntime(18934): at pdftron.PDF.PDFViewCtrl.PDFViewCtrlCreate(Native Method)
09-25 15:17:44.466: E/AndroidRuntime(18934): at pdftron.PDF.PDFViewCtrl.a(SourceFile:1269)
09-25 15:17:44.466: E/AndroidRuntime(18934): at pdftron.PDF.PDFViewCtrl.(SourceFile:1327)
09-25 15:17:44.466: E/AndroidRuntime(18934): at com.pdftron.pdfnet.demo.completereader.viewer.CompleteReaderPDFViewCtrl.(CompleteReaderPDFViewCtrl.java:22)
09-25 15:17:44.466: E/AndroidRuntime(18934): … 23 more
09-25 15:17:50.446: I/art(18934): Heap transition to ProcessStateJankImperceptible took 42.053069ms saved at least 435KB

Test.rar (36.5 KB)

Hi David,

CompleteReader is a sample project that demonstrates how to use PDFNet Android SDK as well as the PDFViewCtrlTools library. It is not a library that can be imported to other projects.
PDFViewCtrlTools library can be used/imported to other projects as is.

As a starting point, I would recommend running the CompleteReader sample as is and copy files that you found useful to your own project.
If you are having trouble running the sample project, please don’t hesitate to contact us again!

Best Regards,
Shirley Gong
Software Developer | PDFTron Systems, Inc.
blog.pdftron.com | PDFTron on Stackoverflow | PDFNet SDK Forum | WebViewer Forum