我如何创建一个证书对于我的Andr​​oid市场APK?我的、创建一个、证书、市场

2023-09-12 06:56:03 作者:—━☆沉默づ

我想我的第一个APK /应用程序上传到Android Market,但我得到这个错误(这并没有使我对正确的链接时,在计算器搜查,顺便说一句)。

I want to upload my first APK/app to the Android Market, but I got this error (which did not lead me to the correct link when searched for in stackoverflow, by the way).

市场不接受与调试证书签名的apk。创建一个新的证书有效期为至少50年。 市场要求证书用于签署的apk有效期至少到10月22日,2033年创建一个新的证书。

Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate.

虽然事实证明这个问题是相似的,那家伙只是说:哦,你提醒如何做到这一点我没有真正解释。我看在回答中提到的网站,但这里是我的问题:

Though it turns out this question is similar, the guy just says "Oh, you reminded me of how to do it" without actually explaining. I've looked at the website referred to in the "answer", but here's my problem:

我不知道我的keytool工具。该的Andr​​oid网站是pretty的模糊;我没有看到任何形式的在我的.. \ Android的SDK-WINDOWS \ tools目录中。密钥工具 我想我以前做过,但我希望我有一组步骤就是喜欢打开一个命令提示符,导航到密钥工具是目录,在命令中输入某某-flagsforxyz',然后指向密钥库从Eclipse的导出发行APK'选项...或者类似的东西。 I don't know where my keytool tool is. The Android site is pretty vague; I don't see "keytool" of any sort in my ..\android-sdk-windows\tools directory. I think I've done this before, but I wish I had a set of steps that is like "Open up a command prompt, navigate to the directory where keytool is, enter in command 'xyz -flagsforxyz', and then point to the keystore from the 'export release apk' option in Eclipse"... or something similar.

我希望你能告诉我试过几件事情了!我可能只是忽视的东西简单 - 所以它的时间将被记录在计算器的步骤!感谢您的帮助。

I hope you can tell that I've tried a few things already! I might just be overlooking something simple -- so it's time for the steps to be recorded in stackoverflow! Thanks for your help.

推荐答案

。现在选择Android和再出口的Andr​​oid应用程序。在下一步确认您要导出的项目。然后单击下一步,现在你应该可以选择创建新的密钥存储。现在填写必填字段,您应该可以登录您的应用程序。务必使密钥库文件的备份,并记住您的密码。失去这将使其无法更新应用程序。

If you are using Eclipse for Development just right click on your project and click export. Now choose Android and then Export Android Application. In the next step confirm the project that you want to export. Then click next and now you should be able to select create new keystore. Now fill in the required fields and your should be able to sign your app. Be sure to make a backup of the keystore file and remember your password. Losing this will make it impossible to update your application.

如果您使用的是终端打造一个密钥存储,你必须安装Java SDK应该有一个叫做密钥工具在/ usr / bin中(基于UNIX的系统)计划。在Windows的SDK还应该有密钥工具,但安装位置可能不同搜索keytool.exe的计算机上,如果密钥工具是不是在你的路径了。有了这个工具,你应该能够创建以下列方式的关键:

If you are using the terminal to create a keystore and you have Java SDK installed there should be a program called keytool in /usr/bin (on a unix based system). On Windows the SDK should also come with the keytool but the install location may be different search for keytool.exe on your computer if keytool is not in your path already. With this tool you should be able to create a key in the following way:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000

请记住,一旦你失去了你的证书或到期,你将无法登录你的应用程序。确保截止日期是一个很长很长的时间在未来。

Remember that once you lose your Certificate or it expires you will not be able to sign your application. Make sure that the expiration date is a long long time in the future.