xamarin -keystore and apk have sha1 is different

梦想的初衷 提交于 2020-12-11 00:50:15

问题


I have old Xamarin android project. I made small changes and changed target to android x. The customer sent me a keystore file with password and alias. Now I need to sign and publish the package in google play. But I am getting the error your fingerprint does not match:

-need "Sha1Need"
-current "Sha1Other"

I check my key file with command:

keytool -list -v -keystore "my.keystore" -alias key -storepass mypass -keypass mypass

I get result value "Sha1Need". Than I checking my apk with command:

keytool -printcert -jarfile my.apk

I get value "Sha1Other". How is it possible? And how can I fix this?

I use this code in my .csprj file:

 <AndroidSigningKeyStore>app.keystore</AndroidSigningKeyStore>
 <AndroidSigningStorePass>mypass</AndroidSigningStorePass>
 <AndroidSigningKeyAlias>alias</AndroidSigningKeyAlias>
 <AndroidSigningKeyPass>mypass</AndroidSigningKeyPass>

--UPDATED--

This was a problem on the customer's side. He changed the password on the key several times, and one of the options worked.

来源:https://stackoverflow.com/questions/64434366/xamarin-keystore-and-apk-have-sha1-is-different

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!