[BUG] Android 16 KB page sizes warning
Description
When compiling an app with the package SkiaSharp.Extended.UI.Maui, there is the following compilation warning:
Android 16 will require 16 KB page sizes, shared library 'libHarfBuzzSharp.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'HarfBuzzSharp.NativeAssets.Android' version '8.3.0' which contains 'runtimes/android-x64/native/libHarfBuzzSharp.so'. See https://developer.android.com/guide/practices/page-sizes for more details.
Android 16 will require 16 KB page sizes, shared library 'libSkiaSharp.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'SkiaSharp.NativeAssets.Android' version '3.116.0' which contains 'runtimes/android-x64/native/libSkiaSharp.so'. See https://developer.android.com/guide/practices/page-sizes for more details.
Code
Just compiling with the latest stable version of SkiaSharp.Extended.UI.Maui
Expected Behavior
No compilation warning
Actual Behavior
A warning appears
Basic Information
- Version with issue: 2.0.0
- Last known good version: None
- IDE: Visual Studio
- Platform Target Frameworks:
- Android: All
- iOS: All
- Target Devices:
- All
@mattleibow since the fix is merged, when is it expected that a new stable version will be released?
@mattleibow since the fix is merged, when is it expected that a new stable version will be released?
@mattleibow as we are not allowed in our current project to use pre-release (preview) versions of a nuget, we also need a stable release with this change.
@mattleibow with Android 16 already out for 2 weeks, this really starts to become a pressing issue.
Any update on this?
This will also be a issue for our team. Is there a plan ETA on the offical release?
This will also be a issue for our team. Is there a plan ETA on the offical release?
unfortunately this repo receives very little love from the maintainers.
Please release new version compatible with 16kb page size @mattleibow is a huge issue with Android requirement with Google Play to release new app updates.
For now, a workaround is to just install the latest SkiaSharp NuGet package. This will update the version of skia that has the support.
I am working on getting this package stable and released. Just hittong some issues since all the CI was "disabled" but bots since it was such a long time since anything happened.
Thanks @mattleibow, I tried installing the latest skiasharp Nuget and it didn't work. I still get the warning about it.
Did you install the latest v3?
I tried SkiaSharp 3.119.0
Are there any others I need to try? I only had SkiaSharp and the extended Maui ui nuggets.
I think that is correct. I just did a test now and is says it is 16 KB aligned:
Elf file type is DYN (Shared object file)
Entry point 0x0
There are 10 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000230 0x000230 R 0x8
LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x23ba8c 0x23ba8c R 0x4000
LOAD 0x23ba90 0x000000000023fa90 0x000000000023fa90 0x630420 0x630420 R E 0x4000
LOAD 0x86beb0 0x0000000000873eb0 0x0000000000873eb0 0x02daf8 0x02e150 RW 0x4000
LOAD 0x8999a8 0x00000000008a59a8 0x00000000008a59a8 0x001d08 0x0097b8 RW 0x4000
DYNAMIC 0x896e68 0x000000000089ee68 0x000000000089ee68 0x0001f0 0x0001f0 RW 0x8
GNU_RELRO 0x86beb0 0x0000000000873eb0 0x0000000000873eb0 0x02daf8 0x02e150 R 0x1
GNU_EH_FRAME 0x1243f8 0x00000000001243f8 0x00000000001243f8 0x02931c 0x02931c R 0x4
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x0
NOTE 0x000270 0x0000000000000270 0x0000000000000270 0x000098 0x000098 R 0x4
Specifically the LOAD headers 0x4000 is 16KB:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x23ba8c 0x23ba8c R 0x4000
LOAD 0x23ba90 0x000000000023fa90 0x000000000023fa90 0x630420 0x630420 R E 0x4000
LOAD 0x86beb0 0x0000000000873eb0 0x0000000000873eb0 0x02daf8 0x02e150 RW 0x4000
LOAD 0x8999a8 0x00000000008a59a8 0x00000000008a59a8 0x001d08 0x0097b8 RW 0x4000
Maybe a clean is needed.
I did do a full clean ( deleted bin/obj folders etc ) but happy to try again in the morning. Will let you know.
@mattleibow, what tool did you use to check the LOAD headers?
I added skiasharp nuget and did a clean build, and I think I've eliminated the KB page size warning, but I want to be sure
Hi all, I am a bit confused I am using SkiaSharp.Extended.UI.Maui 3.0.0-preview.13 and I am getting in google console that base/lib/arm64-v8a/libSkiaSharp.so does not support 16KB pages..
I dont have SkiaSharp as a package in my apps, are we saying I should bring this in together with SkiaSharp.Extended.UI.Maui 3.0.0-preview.13 ?
Will SkiaSharp.Extended.UI.Maui 3.0.0-preview.13 any ideas when this might be released?
Very grateful for clarification
@mattleibow
Hola a todos, estoy un poco confundido. Estoy usando SkiaSharp.Extended.UI.Maui 3.0.0-preview.13 y en la consola de Google me aparece que base/lib/arm64-v8a/libSkiaSharp.so no admite páginas de 16 KB.
No tengo SkiaSharp como paquete en mis aplicaciones, ¿estamos diciendo que debería incorporarlo junto con SkiaSharp.Extended.UI.Maui 3.0.0-preview.13?
¿SkiaSharp.Extended.UI.Maui 3.0.0-preview.13 tendrá alguna idea de cuándo podría lanzarse?
Muy agradecido por la aclaración.
Hola a todos, tengo la misma duda alguna respuesta?
@mattleibow @Aguirrehub25 @Grzegorz1223 I have managed to get rid of the Android 16 KB page sizes warning by upgrading to the latest package version "3.0.0-preview.18"
Awesome. I am getting my pipelines going again and will do stable soon.
Awesome. I am getting my pipelines going again and will do stable soon.
Hello, the deadline established by Google is approaching. What is the plan for the release schedule?
@mattleibow @jfversluis Could you please publish a stable NuGet package release for this library? We rely on this urgently as the deadline approaches.
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.
@mattleibow we have the same need - Office policy I cannot use it as a "prerelease" . Thank you
@mattleibow thank you for fixing the pipelines, but I think that something is not right since the nuget repo was not updated with the latest version https://www.nuget.org/packages/SkiaSharp.Extended/#versions-body-tab
The 3.0.0 nugets should depend on the latest stable 3.119.1.
Maybe I am misunderstanding your question?
11 hours ago a stable package was released. Thank you!
Solved with the update :) Thanks!