Closed rakmobility closed 2 years ago
Exact same issue here - using latest version
According to https://github.com/rumax/react-native-PDFView/issues/204 - This is due to not including jcenter() in the build.gradle file. Will this not be an issue with jcenter shutting down?
Indeed, adding jcenter()
to android/build.gradle
fixes the issue. They say that jcenter is in readonly mode indefinitely, so I suppose it should be fine for now.
// android/build.gradle
allprojects {
repositories {
...
jcenter()
}
}
According to #204 - This is due to not including jcenter() in the build.gradle file. Will this not be an issue with jcenter shutting down?
I'm removing jcenter, any update on this solution?
any update on this solution?
Did you try an alternative solution mentioned in readme?
Barteksc PdfViewer uses JCenter, which should be read-only indefinitely, but in case the host project does not use it, there is a possibility to use mhiew/AndroidPdfViewer which is a fork published on mavenCentral.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Building for Android and getting: Required by: project :app > project :react-native-view-pdf
Using below repos: repositories { mavenLocal() mavenCentral() google() maven { url 'https://maven.google.com' } maven { url("https://jitpack.io") } maven { url "https://maven.fabric.io/public" } }