flutter_pdfview icon indicating copy to clipboard operation
flutter_pdfview copied to clipboard

Could not find com.github.barteksc:android-pdf-viewer:3.2.0-beta.1.

Open harunme3 opened this issue 3 years ago • 12 comments

What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.github.barteksc:android-pdf-viewer:3.2.0-beta.1. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/barteksc/android-pdf-viewer/3.2.0-beta.1/android-pdf-viewer-3.2.0-beta.1.pom - https://repo.maven.apache.org/maven2/com/github/barteksc/android-pdf-viewer/3.2.0-beta.1/android-pdf-viewer-3.2.0-beta.1.pom - https://storage.googleapis.com/download.flutter.io/com/github/barteksc/android-pdf-viewer/3.2.0-beta.1/android-pdf-viewer-3.2.0-beta.1.pom Required by: project :app > project :flutter_pdfview

not able to download packages

when I click on the first link Screenshot (5)

harunme3 avatar Jan 17 '22 02:01 harunme3

Same issue here, any fix?

guigzp avatar Jan 17 '22 14:01 guigzp

Same issue here to ? any solution for it ?

phanindravarma412 avatar Jan 19 '22 11:01 phanindravarma412

It worked for me after updating compiledsdkversion 31 add android.enableR8=true in gradle.properties changed

dependencies {
       classpath 'com.android.tools.build:gradle:4.1.0'
       classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
   }

in build.gradle

phanindravarma412 avatar Jan 20 '22 04:01 phanindravarma412

Same issue here, any fix?

You should try this flutter package https://pub.dev/packages/uc_pdfview Everything same just you have to change PDFView to UCPDFview

And replace the import From import 'package:flutter_pdfview/flutter_pdfview.dart'; to this import 'package:uc_pdfview/uc_pdfview.dart';

harunme3 avatar Jan 20 '22 13:01 harunme3

facing this issue for a week. any solution ? i've tried @phanindravarma412 solution but it didn't work for me!

RomjanHossain avatar Jan 25 '22 15:01 RomjanHossain

You should try this flutter package https://pub.dev/packages/uc_pdfview Everything same just you have to change PDFView to UCPDFview

And replace the import From import 'package:flutter_pdfview/flutter_pdfview.dart'; to this import 'package:uc_pdfview/uc_pdfview.dart';

harunme3 avatar Jan 26 '22 12:01 harunme3

I fixed it with the below steps.

https://youtu.be/aIZdwgrnbW4

Jigneshiosdeveloper avatar Feb 14 '22 18:02 Jigneshiosdeveloper

I fixed it with the below steps.

https://youtu.be/aIZdwgrnbW4

Why bother with video link. Just tell people to downgrade to 1.1.0 . It is that simple

kateile avatar Feb 18 '22 18:02 kateile

The Android library is in jcenter but this Flutter package uses mavenCentral https://github.com/barteksc/AndroidPdfViewer#installation

gazialankus avatar Feb 27 '22 21:02 gazialankus

I fixed it with the below steps.

https://youtu.be/aIZdwgrnbW4

Didn't really did the trick for me

RitchieP avatar Mar 29 '22 08:03 RitchieP

It is mentioned in pub.dev page that lib uses AndroidPdfViewer and there you can find information which says: "Library is available in jcenter repository, probably it'll be in Maven Central soon.". To fix this problem just add

allprojects {
    repositories {
        google()
        mavenCentral()
        jcenter()  //add this 
    }
}

to your android/build.gradle file. Worked in my case.

kczpl avatar Apr 22 '22 12:04 kczpl

It is mentioned in pub.dev page that lib uses AndroidPdfViewer and there you can find information which says: "Library is available in jcenter repository, probably it'll be in Maven Central soon.". To fix this problem just add

allprojects {
    repositories {
        google()
        mavenCentral()
        jcenter()  //add this 
    }
}

to your android/build.gradle file. Worked in my case.

I see, I worked out my solution by using another package.

RitchieP avatar Apr 22 '22 12:04 RitchieP