You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: ddb215b
Context: https://github.com/google/bundletool/releases/tag/1.17.0
* ddb215b added an field to the `application_config` structure which
specified the mask required to check whether entries in the APK that
we read at run time are properly alignment at the 4k or 16k page
boundary. This commi removes that code because it's possible that
`bundletool` will change the package alignment **after** our code is
already built. This would cause a false negative and an abort during
application execution.
Instead, we simply check whether the entry is 4k **or** 16k aligned.
* Bump `bundletool` to 1.17.0, which now defaults to producing
16k-aligned archives.
* Pass required alignment flags to Mono AOT compiler to produce
properly aligned shared libraries.
* Don't align 32-bit shared libraries to 16k, always use 4k alignment.
This is in line with what NDK r27 does.
* Verify alignment of shared libraries and issue new `XA0141` warning if
any misaligned library is encountered.
Copy file name to clipboardExpand all lines: Documentation/docs-mobile/messages/index.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,8 @@ Please file an issue with the exact error message using the 'Help->Send Feedback
102
102
or 'Help->Report a Problem' in Visual Studio for Mac.
103
103
+[XA0138](xa0138.md): %(AndroidAsset.AssetPack) and %(AndroidAsset.AssetPack) item metadata are only supported when `$(AndroidApplication)` is `true`.
104
104
+[XA0139](xa0139.md): `@(AndroidAsset)``{0}` has invalid `DeliveryType` metadata of `{1}`. Supported values are `installtime`, `ondemand` or `fastfollow`
105
-
+[XA0140](xa0140.md):
105
+
+[XA0140](xa0140.md):
106
+
+[XA0141](xa0141.md): NuGet package '{0}' version '{1}' contains a shared library '{2}' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details
NuGet package '{0}' version '{1}' contains a shared library '{2}' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details
11
+
12
+
## Solution
13
+
14
+
The indicated native shared library must be recompiled and relinked with the 16k alignment, as per URL indicated in the message.
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,11 @@
48
48
49
49
<!--
50
50
Android package (apt/aab) alignment, expressed as the page size in kilobytes. Two values are supported: 4 and 16.
51
-
Sometime next year the default value should be changed to 16 since it's going to be a Google Play store requirement for
52
-
application submissions.
51
+
Sometime next year 16 is going to be a Google Play store requirement for application submissions.
53
52
54
53
When changing this default, change the value of `DefaultZipAlignment` in `src/Xamarin.Android.Build.Tasks/Tasks/AndroidZipAlign.cs` as well
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Properties/Resources.resx
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1059,4 +1059,12 @@ To use a custom JDK path for a command line build, set the 'JavaSdkDirectory' MS
1059
1059
{0} - NuGet package id
1060
1060
{1} - NuGet package version</comment>
1061
1061
</data>
1062
-
</root>
1062
+
<dataname="XA0141"xml:space="preserve">
1063
+
<value>NuGet package '{0}' version '{1}' contains a shared library '{2}' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details</value>
1064
+
<comment>The following is a literal name and should not be translated: NuGet
0 commit comments