rumax / react-native-PDFView

📚 PDF viewer for React Native
MIT License
300 stars 92 forks source link

Could not get resource #216

Closed WilongChen closed 2 years ago

WilongChen commented 2 years ago

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve com.github.barteksc:android-pdf-viewer:2.8.2. Required by: project :app > project :react-native-view-pdf Could not resolve com.github.barteksc:android-pdf-viewer:2.8.2. Could not get resource 'https://www.jitpack.io/com/github/barteksc/android-pdf-viewer/2.8.2/android-pdf-viewer-2.8.2.pom'. Could not GET 'https://www.jitpack.io/com/github/barteksc/android-pdf-viewer/2.8.2/android-pdf-viewer-2.8.2.pom'. Received status code 401 f rom server: Unauthorized

saransh-malik commented 2 years ago

You are probably not using jcenter in your repositories, see the readme on how you can use this package without using jcenter.

rumax commented 2 years ago

@saransh-malik thanks for the comment @WilongChen yes, JCenter or mavenCentral is needed for Barteksc PdfViewer or mhiew/AndroidPdfViewer. Please, check that you have it defined in your gradle script.