AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

Solution of "Failed to resolve: com.github.barteksc:android-pdf-viewer:2.8.2"

Open prince02765 opened this issue 2 years ago • 11 comments

Simply add this line into the build.gradle(app level)

implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'


If you have android studio bumblebee or android studio arctic fox then,

add gradlePluginPortal() into settings.gradle file

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() gradlePluginPortal() } }

prince02765 avatar Mar 26 '22 15:03 prince02765

thanks ... I was getting error when adding <com.github.barteksc.pdfviewer.PDFView android:id="@+id/pdfView" android:layout_width="match_parent" android:layout_height="match_parent"/> to layout..... = Class referenced in the layout file, com.github.barteksc.pdfviewer.PDFView, was not found in the project or the libraries

and then I added gradlePluginPortal() ..... like you said.... and error is gone

adityapalange avatar Apr 01 '22 12:04 adityapalange

Thanks!! It worked...

krishu-rdx avatar Apr 11 '22 06:04 krishu-rdx

its not working giving me this error Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.8.0-runtime (androidx.core:core:1.8.0) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)

adarsh-dhakad avatar Aug 28 '22 07:08 adarsh-dhakad

thanks ... I was getting error when adding <com.github.barteksc.pdfviewer.PDFView android:id="@+id/pdfView" android:layout_width="match_parent" android:layout_height="match_parent"/> to layout..... = Class referenced in the layout file, com.github.barteksc.pdfviewer.PDFView, was not found in the project or the libraries

and then I added gradlePluginPortal() ..... like you said.... and error is gone

Thanks. It worked.

anupsamanta avatar Sep 26 '22 13:09 anupsamanta

i have added gradlePluginPortal()...... but the problem is same Cannot resolve class com.github.barteksc.pdfviewer.PDFView

sajiiidali avatar Feb 06 '23 08:02 sajiiidali

use this implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.3'

adarsh-dhakad avatar Feb 08 '23 09:02 adarsh-dhakad

thank you i had same issue

sakshiselmokar avatar Jul 11 '23 15:07 sakshiselmokar

hello i got the solution use this dependency

implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.3'

adarsh-dhakad avatar Jul 11 '23 16:07 adarsh-dhakad

thank you i had same issue

use this one, this is available for mavenCentral

implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.3'

adarsh-dhakad avatar Jul 11 '23 16:07 adarsh-dhakad