dotnet / dotnet/android-libraries
Xamarin.Google.Android.Play.App.Update: jarsigner: unable to sign jar: java.util.zip.ZipException: attempt to write past end of STORED entry
- Dominant language
- C#
- Stars
- 317
- Forks
- 73
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 17
Description
### Android framework version
net10.0-android
### Affected platform version
VS2026
### Description
When you update the Xamarin.Google.Android.Play.App.Update package to 2.1.0.18, you cannot sign the AAB file because this exception is throwed:
jarsigner: unable to sign jar: java.util.zip.ZipException: attempt to write past end of STORED entry
If you downgrade the package to the 2.1.0.16 version, the AAB file is correctly signed.
### Steps to Reproduce
1. Update the Xamarin.Google.Android.Play.App.Update package to 2.1.0.18 version.
2. Compile the MAUI app.
3. Publish it.
4. Distribute
5. Select some certificate.
6. type the certificate's password.
7. Exception is throwed.
### Did you find any workaround?
Downgrade the package to the 2.1.0.16 version (I haven't tested with 2.1.0.17 version), the AAB file is correctly signed.
### Relevant log output
```shell
I have these references in the csproj file:
123.0.0.3
120.0.4.1
118.10.0.1
121.3.0.9
2.1.0.18
Additionally, I'm using another references:
I tested with a new project with these references and the signing fails.
```
Contributor guide
Assessment
This issue has not been assessed yet.