DImuthuUpe / AndroidPdfViewer

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

not working for aug 2024 still now it showing failed to resolve any suggesstions pls drop below. #1207

Open jagannath4 opened 2 months ago

AmeerElbaz commented 2 months ago

Try this

  1. Add this to your repositories block: maven { url "https://jitpack.io" }
  2. Add this dependency: implementation 'com.github.DImuthuUpe:AndroidPdfViewer:3.1.0-beta.1'

You should be able to get the library using Jitpack instead of JCenter(Which is down), or spring repos(Which requires authentication).

ashirmehmood1996 commented 2 months ago

Hi AmeerElbaz I tried your solution and got no luck its still giving error. plus I am not sure if this beta version is as stable as the 2.x.x version. What we can do now. Our app is on Play store and is relying on this project for years

AmeerElbaz commented 2 months ago

Hello @ashirmehmood1996, The solution above works fine with me, make sure you are placing the maven{} in the right place.

In case you want to get the 2.x.x version, you can do the following

  1. Add this to your repositories block: maven { url 'https://maven.aliyun.com/repository/public'} Make sure you are placing it in the right place, maybe you are putting it in the repositories block for plugins, not dependencies.

  2. Add this dependency: implementation "com.github.barteksc:android-pdf-viewer:2.8.2"