react-native-pdf
react-native-pdf copied to clipboard
Could not resolve com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3
What react-native
version are you using?
0.70.6
What react-native-pdf
version are you using?
6.4.2
What platform does your issue occur on? (android/ios/both)
android
The Error
Could not determine the dependencies of task ':react-native-pdf:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-pdf:debugCompileClasspath'.
> Could not resolve com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3.
Required by:
project :react-native-pdf
> Skipped due to earlier error
> Skipped due to earlier error
I have updated our project from React-native 0.66.3
to 0.70.6
. But this issue occured. I have also added this maven { url 'https://jitpack.io' }
. But it still doesn't work.
My build.gradle
:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "31.0.0"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for aarch64
ndkVersion = "24.0.8215888"
} else {
// Otherwise we default to the side-by-side NDK version from AGP.
ndkVersion = "21.4.7075529"
}
googlePlayServicesVersion="17.0.0"
googlePlayServicesAuthVersion = "19.2.0" // <--- use this version or newer
firebaseMessagingVersion="23.0.0"
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.2.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("de.undercouch:gradle-download-task:5.0.1")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:4.2.1' // <--- use this version or newer
classpath 'com.google.gms:google-services:4.3.10' // <--- use this version or newer
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
google()
jcenter() {
content {
includeModule("com.yqritc", "android-scalablevideoview")
}
}
jcenter()
maven { url 'https://jitpack.io' }
}
}
It worked fine in my earlier version of react native. After upgrading to new version(0.70.6) , it occurs this error.
Having the same issue as well
after check through here and there, it seems jitpack is down, link https://github.com/jitpack/jitpack.io/issues/5337
Same here 😵
Any way to resolve it?
this was due to jitpack server were busy
it can be closed now as this was fixed in my case after jitpack servers are online again
This is still happening, any idea on how to fix it?
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3.
Required by:
project :app > project :react-native-pdf
> Could not resolve com.github.TalbotGooday:AndroidPdfViewer:3.1.0-beta.3.
> Could not get resource 'https://wwww.jitpack.io/com/github/TalbotGooday/AndroidPdfViewer/3.1.0-beta.3/AndroidPdfViewer-3.1.0-beta.3.pom'.
> Could not HEAD 'https://wwww.jitpack.io/com/github/TalbotGooday/AndroidPdfViewer/3.1.0-beta.3/AndroidPdfViewer-3.1.0-beta.3.pom'.
> wwww.jitpack.io