AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

code 401 from server: Unauthorized

Open phoang890 opened this issue 1 year ago • 9 comments

Hi, im using ext.kotlin_version = '1.6.10', flutter 3.0.2 on macOS and getting this error when build apk: Execution failed for task ':app:mergeReleaseAssets'.

Could not resolve all files for configuration ':app:releaseRuntimeClasspath'. Could not resolve com.github.barteksc:android-pdf-viewer:3.2.0-beta.1. Required by: project :app > project :flutter_pdfview > Could not resolve com.github.barteksc:android-pdf-viewer:3.2.0-beta.1. > Could not get resource 'https://jitpack.io/com/github/barteksc/android-pdf-viewer/3.2.0-beta.1/android-pdf-viewer-3.2.0-beta.1.pom'. > Could not GET 'https://jitpack.io/com/github/barteksc/android-pdf-viewer/3.2.0-beta.1/android-pdf-viewer-3.2.0-beta.1.pom'. Received status code 401 from server: Unauthorized

phoang890 avatar Aug 23 '24 16:08 phoang890

receiving the same error

import-tushar avatar Aug 26 '24 11:08 import-tushar

Same here. I'm receiving the same error

mariaiffonseca avatar Aug 26 '24 16:08 mariaiffonseca

mine is working after changing the url to implementation 'com.github.DImuthuUpe:AndroidPdfViewer:2.8.1'

i think its because he changed his username and the project name you can also check this jitpack page of AndroidPdfViewer https://jitpack.io/#DImuthuUpe/AndroidPdfViewer

tarkiedev1 avatar Aug 27 '24 07:08 tarkiedev1

It worked, @tarkiedev1 ! Thank you

mariaiffonseca avatar Aug 27 '24 09:08 mariaiffonseca

just add in your project

implementation 'com.github.DImuthuUpe:AndroidPdfViewer:3.1.0-beta.1'

Kooo9058 avatar Aug 28 '24 07:08 Kooo9058

com.github.DImuthuUpe:AndroidPdfViewer:2.8.1

Thank you for saving the day

ashirmehmood1996 avatar Sep 11 '24 16:09 ashirmehmood1996

Mine also solved using this:

implementation 'com.github.DImuthuUpe:AndroidPdfViewer:3.1.0-beta.1'

hayatnabi avatar Sep 12 '24 11:09 hayatnabi

Success to resolve by adding following to build.gradle in root project allprojects { repositories { google() mavenCentral() maven { url 'https://maven.aliyun.com/repository/public'} } }

vietnguyen312 avatar Sep 19 '24 14:09 vietnguyen312

After spending hours on this, finally it worked for me. Thanks @tarkiedev1 for saving the day.

pasionatedeveloper avatar Oct 06 '24 02:10 pasionatedeveloper