Toni Turek
Toni Turek

Reputation: 25

Visual Studio MAUI Android publish jarsigner error

A few days ago I updated Visual Studio 2022 to version 17.13.0. After the update, I was not able anymore to push my Android MAUI app (.aab) to the PlayStore.

The error occurs during the signing of the package with the following error message: enter image description here

I tried to change the Android SDK Command-line Tools version but for some reason it requires versions 11.0 and 12.0.

Any hint what can cause this issue would be wonderful!

Thanks

Upvotes: 0

Views: 39

Answers (1)

Toni Turek
Toni Turek

Reputation: 25

For now I am getting around the issue by executing the following command in the VisualStudio PowerShell:

dotnet publish -f net8.0-android -c Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="my.keystore" -p:AndroidSigningKeyAlias=keyalias -p:AndroidSigningKeyPass=mypassword -p:AndroidSigningStorePass=mypassword -p:AndroidPackageFormats=aab -p:ApplicationId=com.myapp.maui

following this description:

https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/publish-cli?view=net-maui-8.0

Upvotes: 0

Related Questions