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

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

Open
ahsan-storm opened this issue Aug 27, 2024 · 2 comments
Open

Comments

@ahsan-storm
Copy link

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
Copy link

same here

@Legendorik
Copy link

Judging by DImuthuUpe/AndroidPdfViewer#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants