Search code examples
androidvisual-studiomauijarsigner

Publishing Ad-Hoc .aab on Maui gives "attempt to write past end of STORED entry" Error


I am trying to publish my project to a .aab for ad-hoc on .NET MAUI on VS 2022 17.12.0. I keep experiencing this error after I put my password in for the keystore to save the .aab locally:

jarsigner: unable to sign jar: java.util.zip.ZipException: attempt to write past end of STORED entry

My configuration is set to release. Would anyone know why this is happening?

There was not much information online for me to attempt any workarounds or fixes.


Solution

  • It seems like when I go through the route of using the terminal to publish a signed .aab instead, I dont get an error.

    I followed this video: https://www.youtube.com/watch?v=jfSVb_RR7X0

    and as recommended by one of the commenter, I also looked through this: https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/publish-cli?view=net-maui-9.0