Skip to content

Android:  libalphaskiajni.so  not compatible with 16 KB page size (Google Play requirement) #68

@AndreiGorelov

Description

@AndreiGorelov

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

On Android, the native library  libalphaskiajni.so  shipped with the alphaTab Android AAR is built with 4 KB LOAD section alignment.
When analyzing my APK / AAB in Android Studio (APK Analyzer / App Bundle Explorer), the following warnings are shown for alphaTab’s native libraries:
•  lib/x86_64/libalphaskiajni.so  – “4 KB LOAD section alignment, but 16 KB is required”
•  lib/arm64-v8a/libalphaskiajni.so  – “4 KB LOAD section alignment, but 16 KB is required”
Other native libraries in the same app are already aligned for 16 KB, but the alphaTab library is not, so the app as a whole is reported as not supporting 16 KB devices.

Image

According to Google Play’s new requirements, this will eventually prevent publishing updates for apps that include such libraries on devices with 16 KB page size (Android 16+).

Expected Behavior

alphaTab’s Android artifacts should ship native libraries ( libalphaskiajni.so ) that:
• are compatible with 16 KB page size; and
• pass Android Studio / Google Play checks without “4 KB LOAD section alignment” warnings, so apps using alphaTab can be published/updated for devices with 16 KB page size.

Steps To Reproduce

  1. Create a simple Android app that depends on alphaTab
    implementation("net.alphatab:alphaTab:1.8.1")
  2. Build an APK (debug or release)
  3. Open the built artifact in Android Studio: Build → Analyze APK
  4. Inspect the  lib/arm64-v8a  and  lib/x86_64  folders
  5. Observe the warnings on  libalphaskiajni.so: “4 KB LOAD section alignment, but 16 KB is required”

Link to jsFiddle, CodePen, Project

No response

Version and Environment

alphaTab version: 1.8.1 (net.alphatab:alphaTab from Maven Central)
Platform: Android 16
ABIs: arm64-v8a ,  x86_64 
Tools: Android Studio (APK Analyzer)

Platform

Android (Native)

Anything else?

I’m happy to test any changes or snapshot builds you provide to verify that the updated native libraries work correctly on devices with 16 KB page size and pass the Play/Android Studio checks, and I can report back with results.
Thanks a lot for your work on alphaTab!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions