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

Issues with package dependencies

Open Spyro119 opened this issue 5 years ago • 13 comments

What react-native version are you using?

React-native 0.62.0

What react-native-pdf version are you using?

react-native-pdf version 6.2.1

What platform does your issue occur on? (android/ios/both)

Android

Steps to reproduce the issue or to explain in which case you get the issue

Add the latest version of the package, then on terminal run react-native run-android

Interesting logs

When trying to build, here's the log

`` FAILURE: Build failed with an exception.

* What went wrong:
 Could not determine the dependencies of task ':app:processReleaseResources'.
  > Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not find com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3. ``

The package seems to be looking for a dependency that does not exist (latest version of AndroidPdfViewer is 3.1.0-beta.1)

image

Here's the AndroidPDFViewer version release: https://github.com/barteksc/AndroidPdfViewer/releases

Spyro119 avatar Oct 06 '20 17:10 Spyro119

@Spyro119 Facing the same issue not able to build android app did u get a way to fix it ?

This is the error log I got while I tried to build the android project.

Could not find com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3.
Required by:
    project :app > project :react-native-pdf

srajesh636 avatar Oct 07 '20 20:10 srajesh636

@srajesh636 I downgraded to the previous version and everything works. I just figured I'd open an issue to let the dev's know about it, so they can solve it for the next versions. I'm using [email protected] instead :P

Spyro119 avatar Oct 07 '20 20:10 Spyro119

@srajesh636 Can you add following and try again

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

vikas5914 avatar Oct 07 '20 23:10 vikas5914

@srajesh636 Can you add following and try again

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

work for me, thx

thomas123123 avatar Nov 02 '20 06:11 thomas123123

Worked for me as well, thanks :+1:

caiofinardi avatar Dec 01 '20 14:12 caiofinardi

Thanks 👍

husen007 avatar Mar 30 '21 10:03 husen007

worked for me also thanks

boma25 avatar Jan 22 '22 16:01 boma25

https://github.com/wonday/react-native-pdf/issues/508#issuecomment-705244602

Works fine, maybe include that in Readme?

felansu avatar Mar 08 '22 14:03 felansu

Getting this error and maven { url 'https://jitpack.io' } is already added.

mayankyadav-zepto avatar Apr 26 '22 06:04 mayankyadav-zepto

Getting this error and maven { url 'https://jitpack.io' } is already added.

mayankyadav-zepto avatar Apr 26 '22 06:04 mayankyadav-zepto

Thank you my friend

tobias-rocha avatar Apr 26 '22 13:04 tobias-rocha

@mayankyadav-zepto please provide the content of gradel file or the error log.

vikas5914 avatar Apr 26 '22 23:04 vikas5914

hi, i got the same error when trying to build the apk , i am using expo eas right now, how to solve the issue in expo eas builds.

rohith-thummanapally avatar Sep 28 '22 09:09 rohith-thummanapally