Skip to content

Android release build fails with buildReleasePreBundle on AGP 8+ (Sequence contains more than one matching element) #44

@Ab-Aayan

Description

@Ab-Aayan

The Android release build fails when using easy_pdf_viewer / pdf_viewer with Android Gradle Plugin 8+. Debug builds work, but flutter build appbundle fails during buildReleasePreBundle with Sequence contains more than one matching element. The plugin uses deprecated Android APIs and appears incompatible with AGP 8+, blocking Play Store release builds.

Note: /Users/Developer/.pub-cache/git/pdf_viewer-7f6b2e0e7ba4fb1ee0b3408154680b08b6f60f90/android/src/main/java/dev/kaichi/easy_pdf_viewer/EasyPdfViewerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:buildReleasePreBundle'.

Sequence contains more than one matching element.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 5m 4s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions