Skip to content

[Nuget] Add support for 16 KB page size for Android 16 Maui builds #7065

@MartBentNedap

Description

@MartBentNedap

Summary

We use LightGBM for machine learning purposes on our Maui Android application. But some libraries used do not support 16KB page sizes, which is required as of Android 16.

Motivation

So we can keep our Maui stack up to date with Android 16, which will be mandatory soon.

Description

All underlying libraries which are used by LightGBM should support 16 KB page sizes. This is to accommodate the Android 16 update.

Here is the warning output when a Maui app is compiled with a library that does not support 16 KB page sizes, which in this case is LightGBM.

/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/35.0.61/tools/Xamarin.Android.Common.targets(2131,3): warning XA0141: Android 16 will require 16 KB page sizes, shared library 'lib_lightgbm.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'LightGBM' version '4.6.0' which contains 'runtimes/linux-x64/native/lib_lightgbm.so'. See https://developer.android.com/guide/practices/page-sizes for more details.

Google has already issued a warning in their console indicating that apps that do not support this will no longer by able to upload apps to the Google Play Store. While we can temporarily drop support, we do need to add the support back in the near future.

References

More info about the page sizes can be found here:

https://developer.android.com/guide/practices/page-sizes
https://android-developers.googleblog.com/2025/05/prepare-play-apps-for-devices-with-16kb-page-size.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions