Avinash Roy
Avinash Roy

Reputation: 41

Getting this error in flutter after import flutter_pdfview package

FAILURE: Build failed with an exception.

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

BUILD FAILED in 26s Exception: Gradle task assembleDebug failed with exit code 1

Upvotes: 4

Views: 2220

Answers (2)

Toyyibat Abdulkareem
Toyyibat Abdulkareem

Reputation: 81

I had the same problem until I added jcenter() in my project-level build.gradle file, you do the same, and voila!! it will work

Upvotes: 8

ahmad zabadnee
ahmad zabadnee

Reputation: 123

Same problem here, it seems like they changed some files in the API but they didn't solve it in the package. I tried to visit the next URL for example, and I've reached the following path https://repo.maven.apache.org/maven2/com/github/barteksc where I noticed that the files have changed.

Upvotes: 1

Related Questions