Skip to content

Facing error: The native library x86_64/libc++_shared.so is not 16 KB aligned #30

@Chander413

Description

@Chander413

Description
When using the latest version of the library com.github.Infomaniak:android-pdfview:3.2.13, I face a build failure due to the following error:
The native library x86_64/libc++_shared.so (from com.github.infomaniak:pdfiumandroid:1.9.8) is not 16 KB aligned.

In Build -> Analyze APK.. -> Select apk and observed this error:
ArchivePathEntry: pathPrefix="", path="/lib/x86_64/libc++_shared.so" (Attached screenshot)

Steps to reproduce
Steps to reproduce the behavior:

  1. Add the following dependency in build.gradle:implementation 'com.github.Infomaniak:android-pdfview:3.2.13'
  2. Select Code from the options -> Analyze code -> Run inspection by name -> Native Library dependency not 16KB aligned Android Lint: Correctness
  3. Then click on OK to Run.

Expected behavior
The project should build successfully, and the generated APK should include properly aligned .so files so that it passes Play Store requirements and works on devices using recent Android versions.

Screenshots

Image Image Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions