eclipse 如何为市场签署Android应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7728460/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to sign an android app for the market?
提问by Boris
I've recently released my first app on the market. I tried to install the app on my phone immediately after it was released. But when installing it I got an error saying that the app was wrongly signed. I also got lots of bad ratings for my app because other people couldn't install it as well.
我最近在市场上发布了我的第一个应用程序。该应用程序发布后,我立即尝试在手机上安装该应用程序。但是在安装它时,我收到一条错误消息,说该应用程序签名错误。我的应用程序也获得了很多差评,因为其他人也无法安装它。
So my question is: how can I sign my app correctly? Is there any way to test the result before releasing the app on the market?
所以我的问题是:如何正确签署我的应用程序?有没有什么方法可以在应用程序上市之前测试结果?
BTW: I used the built in function of eclipse to export the signed apk file.
顺便说一句:我使用了 eclipse 的内置功能来导出签名的 apk 文件。
回答by Venky
You need to create Release Key for Signing your Application.
您需要创建用于签署应用程序的发布密钥。
Step : 1 Right Click Project->Export Application->Select you Project->Next->Select new Keystore -> Complete all rest Steps
步骤: 1 右键单击项目->导出应用程序->选择您的项目->下一步->选择新的密钥库->完成所有其余步骤
Step : 2 Note down your Aliasname and Passwordgiven.
步骤:2 记下您提供的别名和密码。
Step : 3 Now if you Complete all process of Filling Details you will get one .apk fileand keystore filein you stored location.
步骤:3 现在,如果您完成了填写详细信息的所有过程,您将在存储位置获得一个.apk 文件和密钥库文件。
Step : 4 Now Again Right Click Project->Export Application->Select you Project->Next->Use Existing Keystore -> Give location and password->Next
步骤:4 现在再次右键单击项目->导出应用程序->选择您的项目->下一步->使用现有密钥库->提供位置和密码->下一步
Step : 5 Now you alias name will comes in your Drop Down->Select it -> Enter Password -> Next
步骤 : 5 现在您的别名将出现在您的下拉列表中-> 选择它-> 输入密码-> 下一步
Step : 6 It will ask for location to store your final .apk file.
步骤:6 它将要求您提供存储最终 .apk 文件的位置。
Step : 7 Select your location and store.
步骤:7 选择您的位置和商店。
Step : 8 Now this Final .apkfile is Your Signed Application.
步骤:8 现在这个最终的 .apk文件是您的签名应用程序。
Note : Keep this keystore filefor further updated of your Application in Android Market ,also keep track of your Alias name and Password
注意:保留此密钥库文件以进一步更新您在 Android Market 中的应用程序,同时跟踪您的别名和密码
回答by Peter Knego
We can't really tell you from afar what is wrong. Did you create your own self-signed certificate? The cert that comes with SDK is a debug certificate and should not be used for signing a production app.
我们无法真正从远处告诉您出了什么问题。您是否创建了自己的自签名证书?SDK 附带的证书是调试证书,不应用于签署生产应用程序。
I recommend you thoroughly read the docs about signing the apps.
我建议您彻底阅读有关签署应用程序的文档。