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

bug #80

Open
OsamaNasserDev opened this issue Apr 22, 2022 · 3 comments
Open

bug #80

OsamaNasserDev opened this issue Apr 22, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@OsamaNasserDev
Copy link

FAILURE: Build failed with an exception.

  • 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

@OsamaNasserDev OsamaNasserDev added the bug Something isn't working label Apr 22, 2022
@mumairofficial
Copy link

I am also facing the same issue, any workaround so far?

image

@devfalah
Copy link

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

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.

@mumairofficial
Copy link

just adding jcenter() worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants