lubritto / pdf_viewer_plugin

A Flutter plugin for IOS and Android providing a simple way to display PDFs.
MIT License
57 stars 64 forks source link

Execution failed for task ':pdf_viewer_plugin:generateReleaseRFile' #55

Open ahsan-storm opened 2 months ago

ahsan-storm commented 2 months ago

I am trying to create a new flutter release and while running the command flutter build apk I get the following error:

`Execution failed for task ':pdf_viewer_plugin:generateReleaseRFile'.

Could not resolve all files for configuration ':pdf_viewer_plugin:releaseCompileClasspath'. Failed to transform android-pdf-viewer-3.0.0-beta.4.aar (com.github.barteksc:android-pdf-viewer:3.0.0-beta.4) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. Could not find android-pdf-viewer-3.0.0-beta.4.aar (com.github.barteksc:android-pdf-viewer:3.0.0-beta.4). Searched in the following locations: https://jcenter.bintray.com/com/github/barteksc/android-pdf-viewer/3.0.0-beta.4/android-pdf-viewer-3.0.0-beta.4.aar`

Abdelrhman-Nagy commented 2 months ago

same here

Legendorik commented 1 month ago

Judging by https://github.com/DImuthuUpe/AndroidPdfViewer/issues/1206, the owner and name of the native plugin have changed. It is necessary to change the dependencies in this package.

In build.gradle add to repositories

mavenCentral()
maven { url 'https://jitpack.io' }

And replace implementation('com.github.barteksc:android-pdf-viewer:3.0.0-beta.4') with implementation ('com.github.DImuthuUpe:AndroidPdfViewer:3.1.0-beta.1')

I also made a fork with these changes https://github.com/Legendorik/pdf_viewer_plugin