Search code examples
androidazure-devopsapkazure-pipelineszipalign

You uploaded an APK that is not zip aligned when running Devops Pipeline Build


I have created a build pipeline in Devops for releasing my app to the Google Play Store. The build succeeds however, when uploading the resulting APK file to Google Play Store it complains - "You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.".

I have checked the Android Signing Task within the pipeline to ensure that Zip Align is enabled.

When performing the build manually through VS2019 and signing the APK it all works fine but, I'd like to get the pipeline working.

Please help.. Thanks in advance !


Solution

  • The issue was the path to the APK within the pipeline. Once this was set correctly the APK uploaded fine into Google Play Store.