Just updated to the Beta Channel of VS4Mac and now when I'm attempting to upload the new APK this erros occurs.
Error: uploading 'package.name' APK signature is invalid or does not exist. Error from apksigner: ERROR (Jar signer APPNAME.RSA): Jar signature META-INF/APPNAME.SF indicates the APK is signed using APK Signature Schema v2 but no such signature was found. Signature stripped?
With Xamarin. Forms, you can use C# or XAML to build cross-platform user interfaces for iOS, Android, and macOS.
Manual InstallationCopy the file to your Android device's physical memory or an SD card and then run the file from your device. Android, by default, blocks installation of Apps that are not from PlayStore. To install your App, you must enable it to accept the App installation from the Settings.
Forms. Android recently changed how splash screens work in Android v12. 0 (API Level 31).
I've run into this issue myself today. After spending the entire day trying to resolve it, I decided to try and manually sign the cert, which works. I can only guess that the latest build of Xamarin has some issue around apk siging.
Anyway, to manually sign the apk, here is a good article https://docs.microsoft.com/en-us/xamarin/android/deploy-test/signing/manually-signing-the-apk
In my case, I took the APK that was built and archived and then ran the following commands:
You might need to add zipalign to your bash profile.
Anyway, it's not ideal but at least I can now deploy my apk and head to bed :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With