microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.19k stars 924 forks source link

Error signing debug variant bundle android app using YAML file #610

Open meltanan opened 1 month ago

meltanan commented 1 month ago

Hey

I have my Azure pipeline building (release variant/environment), signing, and releasing app to production with no issues.

When I try to build the app for debug/beta variant/environment I get an error when it tries to sign the bundle. I'm using the same YML file, the only thing I changed in YML file ( from release to debug) is "tasks: ':app:bundleRelease'" ---> "tasks: ':app:bundleDebug'". and I was getting this error:

jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 7521 but got 7106 bytes).

I made sure there is no existing aab file and I did remove //signingConfig signingConfigs.debug

I'm not sure what I'm missing, or if I'm using the script correctly or building the bundle correctly using the task.

I attached screen shot of my YML file and the error page. Screenshot 2024-06-03 at 5 45 15 PM

I appreciate any help please.

Screenshot 2024-06-03 at 5 47 31 PM Screenshot 2024-06-03 at 5 48 15 PM

vmapetr commented 4 weeks ago

Hi @meltanan thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.