react-native-PDFView icon indicating copy to clipboard operation
react-native-PDFView copied to clipboard

Could not find com.github.barteksc:android-pdf-viewer:2.8.2.

Open vincefetchly opened this issue 6 months ago • 2 comments

Describe the bug A clear and concise description of what the bug is. There is error when trying to run in expo:

Could not find com.github.barteksc:android-pdf-viewer:2.8.2.

To Reproduce just run expo run:android with react-native-view-pdf version: 0.14.0

  • [ ] I checked the demo project and cannot reproduce the issue
  • [ ] I checked the demo project and the issue exists

Steps to reproduce the behavior:

  1. Render PDF with '...'
  2. Other actions '...'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

vincefetchly avatar Jul 31 '25 20:07 vincefetchly

I've hit the same issue. I think we have to do this as explained in the project README:

Image

It looks like it's gone from JCenter (permanently or temporarily I'm not sure)

JeremyBradshaw7 avatar Aug 01 '25 14:08 JeremyBradshaw7

You often replace. :

def pdfViewerVersion = safeExtGet('pdfViewerVersion', '2.8.2') def pdfViewerRepo = safeExtGet('pdfViewerRepo', 'com.github.barteksc')

with:

def pdfViewerVersion = safeExtGet('pdfViewerVersion', '3.2.0-beta.1') def pdfViewerRepo = safeExtGet('pdfViewerRepo', 'com.github.mhiew')

in the node_modules/react-native-view-pdf/android/build.gradle file.

phongbuii avatar Sep 23 '25 07:09 phongbuii