dotnet / dotnet/Silk.NET

Android 16 KB page size warning

Open
#2,493 2 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
5.2k
Forks
477
Avg merge
3d 16h
Merged PRs (30d)
2

Description

# Summary
Silk Android native binaries (ie. SDL) does not support 16 KB page size, which is required by Nov 1st if wanting to deploy in Google Play.

# Steps to reproduce
- Platform: Mobile
- Framework Version: Android .NET 9.0
- API: Vulkan/OpenGL
- API Version: Vulkan 1.2/OpenGL 4.3 Legacy/OpenGL 4.5 Core/OpenGLES 3.2
1. Create an Android project, target `net9.0-android` (ensure you have android SDK 35+ installed)
2. Reference Silk.NET.Windowing 2.22.0 (ie latest)
3. In Visual Studio, right click project -> Archive
4. Observe the warning messages when process is complete:
```
Android 16 will require 16 KB page sizes, shared library 'libSDL2-2.0.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Ultz.Native.SDL' version '2.30.8' which contains 'runtimes/linux-arm64/native/libSDL2-2.0.so'. See https://developer.android.com/guide/practices/page-sizes for more details.
Android 16 will require 16 KB page sizes, shared library 'libSDL2-2.0.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Ultz.Native.SDL' version '2.30.8' which contains 'runtimes/linux-x64/native/libSDL2-2.0.so'. See https://developer.android.com/guide/practices/page-sizes for more details.
Android 16 will require 16 KB page sizes, shared library 'libmain.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Silk.NET.Windowing.Sdl' version '2.22.0' which contains 'C:\Users\USER\.nuget\packages\silk.net.windowing.sdl\2.22.0\lib\net6.0-android31.0\app-release.aar'. See https://developer.android.com/guide/practices/page-sizes for more details.
Android 16 will require 16 KB page sizes, shared library 'libSDL2.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Silk.NET.Windowing.Sdl' version '2.22.0' which contains 'C:\Users\USER\.nuget\packages\silk.net.windowing.sdl\2.22.0\lib\net6.0-android31.0\app-release.aar'. See https://developer.android.com/guide/practices/page-sizes for more details.
Android 16 will require 16 KB page sizes, shared library 'libmain.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Silk.NET.Windowing.Sdl' version '2.22.0' which contains 'C:\Users\USER\.nuget\packages\silk.net.windowing.sdl\2.22.0\lib\net6.0-android31.0\app-release.aar'. See https://developer.android.com/guide/practices/page-sizes for more details.
Android 16 will require 16 KB page sizes, shared library 'libSDL2.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Silk.NET.Windowing.Sdl' version '2.22.0' which contains 'C:\Users\USER\.nuget\packages\silk.net.windowing.sdl\2.22.0\lib\net6.0-android31.0\app-release.aar'. See https://developer.android.com/guide/practices/page-sizes for more details.
```

# Comments
As per the link https://developer.android.com/guide/practices/page-sizes
`Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes on 64-bit devices.`
Note that Android apps are already required to target Android 15 as a minimum, so basically there is a hard deadline to have apps supporting 16 KB page sizes by Nov 1st (assuming you didn't request for an extension).

No workaround other than rebuilding source code yourself.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.