DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.05k stars 1.85k forks source link

Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1 #1153

Open fullstact69 opened 1 year ago

fullstact69 commented 1 year ago

Android Studio Flamingo | 2022.2.1 Patch 2.

Anyone to resolve this?

afaneca commented 1 year ago

JCenter seems to be down (maybe permanently). You need to get this dependency from another repository. Try jitpack.

mhnowak commented 1 year ago

I have the same issue on CI. We're using jitpack and it doesn't help. Any thoughts?

image
afaneca commented 1 year ago

Seems to be related with this issue.

ron-brosh commented 1 year ago

Seems like some tags are not present: https://github.com/barteksc/AndroidPdfViewer/tags

I have a dependency on a library that uses com.github.barteksc:android-pdf-viewer:2.8.2 Can't see 2.8.2 tag though..

Harsh5488 commented 10 months ago

Add the following code in the "settings.gradle" file

maven { url "https://jcenter.bintray.com"}
image


Now add this code in the "gradle.properties" file

android.enableJetifier=true
image
Now rebuild the project after cleaning it. This may help resolving the issue.

dhirunand commented 5 months ago

Add this line at two place in build.gradle maven { url "https://jcenter.bintray.com"}/

example,

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { // ext.kotlin_version = '1.7.1' repositories { google() mavenCentral() maven { url "https://jcenter.bintray.com"}/ } dependencies { classpath 'com.android.tools.build:gradle:8.1.2' classpath 'com.google.gms:google-services:4.4.0' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'

// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

// def nav_version = '2.7.6' classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.7.6"

} }

allprojects { repositories { google() mavenCentral() maven { url "https://jcenter.bintray.com"}/

maven { url "https://jitpack.io" } //zooming photoView

} }

tasks.register('clean', Delete) { delete rootProject.buildDir }