Edit

Share via


.NET for Android warning XA0141

Issue

Future versions of Android on arm64 will require that native libraries use 16 KB page sizes. This requires that the mentioned native libraries be recompiled, and all apps using those native libraries be rebuilt to contain the fixed versions of the native libraries.

See the Android SDK Support 16 KB page sizes documentation for more information.

Solution

The indicated native shared library must be recompiled and relinked with the 16k alignment, as per the Android SDK Support 16 KB page sizes documentation.

Example messages

warning XA0141: Android 16 will require 16 KB page sizes, Shared library 'libface_detector_v2_jni.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'Xamarin.GooglePlayServices.Vision.Face.Contour.Internal' version '116.1.0.19' which contains 'lib/net8.0-android34.0/play-services-vision-face-contour-internal.aar'. See https://developer.android.com/guide/practices/page-sizes for more details.