I do the following steps:
- Click on Build (from VS)
- Click on Archive (from the VS Dropdown) VS Archives the app as an APK (it's one file)
- Click on Distribute
- The Google Play Option is greyed out so I choose Ad Hoc
- Add the Signing Identity
- Open the Distribution folder
- Run zipalign -p -f -v 4 on the apk specifying the output apk
- Zipalign appears successful. So I try to upload to Google Play
9 UH OH: You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR (Jar signer XXX.RSA): JAR signature META-INF/XXX.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped? ERROR (Jar signer XXX.RSA): JAR signature META-INF/XXX.SF indicates the APK is signed using APK Signature Scheme v3 but no such signature was found. Signature stripped?
OY VEY. What now?