How to create a new keystore in xamarin.android?

删除回忆录丶 提交于 2021-02-10 07:09:15

问题


I'm trying to publish a xamarin.android app. I'm using Visual Studio with Xamarin Android 6, so I followed this. In part 2, it describes how to create a new keystore as shown in the following screenshot (You can see the complete describtion here):

I don't get where should I place this command. I looked at that keytool link, but couldn't find any thing. I tried cmd, MSBuild Command Prompt for VS2015 and Developer Command Prompt for VS2015, but all of them showed this error: '$' is not recognized as an internal or external command, operable program or batch file.

In addition to, I tried to create a new keystore using Visual Studio. I went to tools>Android>Publish Android App and I created a keystore and it appeared in path that I specified. Then I went back to that guide and continued from Sign the APK. But there's not any .apk with name and path that I specified. There are just 3 .apk that were before doing all this and don't work.

Now my question is that where should I use that command? In furthermore, I would like to know is there any other way to publish an xamarin.android app?


回答1:


Reyhaneh,

Keytool is an executable provided by the Java SDK. You'll find it in your Java SDK folder, for example:

C:\Program Files (x86)\Java\jdk1.7.0_55\bin\keytool.exe

You can execute it in a normal command prompt. To create a new keystore, open a command prompt with the following line:

"C:\Program Files (x86)\Java\jdk1.7.0_55\bin\keytool.exe" -genkeypair -v -keystore <filename>.keystore -alias <key-name> -keyalg RSA -keysize 2048 -validity 10000


来源:https://stackoverflow.com/questions/40686857/how-to-create-a-new-keystore-in-xamarin-android

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