Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code 401 from server: Unauthorized #1206

Open
phoang890 opened this issue Aug 23, 2024 · 9 comments
Open

code 401 from server: Unauthorized #1206

phoang890 opened this issue Aug 23, 2024 · 9 comments

Comments

@phoang890
Copy link

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

@import-tushar
Copy link

receiving the same error

@mariaiffonseca
Copy link

Same here. I'm receiving the same error

@tarkiedev1
Copy link

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

@mariaiffonseca
Copy link

It worked, @tarkiedev1 ! Thank you

@Kooo9058
Copy link

just add in your project

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

@ashirmehmood1996
Copy link

com.github.DImuthuUpe:AndroidPdfViewer:2.8.1

Thank you for saving the day

@hayatnabi
Copy link

Mine also solved using this:

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

@vietnguyen312
Copy link

vietnguyen312 commented Sep 19, 2024

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

@pasionatedeveloper
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants