android.view.InflateException: Binary XML file line #9: Error inflating class com.github.barteksc.pdfviewer.PDFView

GitHub | akshay-shah | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    android.view.InflateException: Binary XML file line #9: Error inflating class com.github.barteksc.pdfviewer.PDFView

    GitHub | 7 months ago | akshay-shah
    android.view.InflateException: Binary XML file line #9: Error inflating class com.github.barteksc.pdfviewer.PDFView
  2. 0

    android.view.InflateException: Binary XML file line #9: Error inflating class com.github.barteksc.pdfviewer.PDFView

    Stack Overflow | 7 months ago | Akshay Shah
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.justswipe.document/com.justswipe.document.MainActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class com.github.barteksc.pdfviewer.PDFView
  3. 0
    samebug tip
    Caused by fail to load the necessary libraries. Try to reinstall the app.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you have the latest version of SQLCipher and look if you loaded the libraries correctly. More info on this comment: https://goo.gl/tQQ5NO
  6. 0
    samebug tip
    If you're using proguard, check if you correctly configured it, otherwise, just disable proguard. More on this here: https://goo.gl/FP500o
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    dalvik.system.PathClassLoader[DexPathList[[zip file "/system/priv-app/app-release.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]] couldn't find "libmodpdfium.so"

    at java.lang.Runtime.loadLibrary()
  2. Java RT
    System.loadLibrary
    1. java.lang.Runtime.loadLibrary(Runtime.java:366)
    2. java.lang.System.loadLibrary(System.java:989)
    2 frames
  3. com.shockwave.pdfium
    PdfiumCore.<clinit>
    1. com.shockwave.pdfium.PdfiumCore.<clinit>(PdfiumCore.java:19)
    1 frame
  4. com.github.barteksc
    PDFView.<init>
    1. com.github.barteksc.pdfviewer.PDFView.<init>(PDFView.java:316)
    1 frame
  5. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.newInstance(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:288)
    2 frames
  6. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:607)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
    6 frames
  7. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  8. com.justswipe.document
    MainActivity.onCreate
    1. com.justswipe.document.MainActivity.onCreate(MainActivity.java:33)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5979)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2262)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2369)
    5. android.app.ActivityThread.access$800(ActivityThread.java:149)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5258)
    9 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    2 frames