Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

PdfViewer Android – missing classes

Added this to the activity.xml

<com.github.barteksc.pdfviewer.PDFView android:id="@+id/pdfView" android:layout_width="match_parent" android:layout_height="500dp"/>

dependency
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

even after syncing the build the class is not available

Tried undoing the dependency and synced without it and later added again which still did not resolve the issue.

>Solution :

You are seeing this issue because the original repo is published using Jcenter, which is now deprecated on Android.

As mentioned in the issue that I linked, there is a fork of the original project (published as mhiew/AndroidPdfViewer) that is now also published on maven and you can use that to import the library.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading