dev-daru
dev-daru

Reputation: 53

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'

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.

Upvotes: 0

Views: 1281

Answers (1)

Iulian Popescu
Iulian Popescu

Reputation: 2643

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.

Upvotes: 1

Related Questions