您上传在调试模式下签了字,一个APK。您需要登录您的APK在释放模式错误 [英] You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode error

查看:303
本文介绍了您上传在调试模式下签了字,一个APK。您需要登录您的APK在释放模式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上传的谷歌Play商店的应用程序。我建立了.apk文件,并使用Maven的签名。我已经使用了Maven的jarsigner-插件签署的.apk文件。我使用,我创建了使用Eclipse向导签署另一个Android应用程序的关键。我zipalign使用以下命令的.apk文件:     zipalign [-f] [-v] infile.apk outfile.apk

I am trying to upload an Application on the Google Play store. I am building the .apk and signing it using Maven. I have used maven-jarsigner-plugin to sign the .apk file. I am using the key that I created using Eclipse wizard for signing another Android app. I zipalign the .apk file using the following command: zipalign [-f] [-v] infile.apk outfile.apk

当我尝试uplaod在playstore的应用程序,我得到的错误您上传在调试模式下签了字,一个APK。您需要登录您的APK在释放模式。谁能告诉我如何注册在释放模式的APK?我是新来的Maven的(开始使用它今天)。 谢谢

When I try to uplaod the application on the playstore, I get the error You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode. Can anyone please tell me how to sign the apk in release mode? I am new to Maven (started using it today). Thanks

推荐答案

我不知道你是如何做到这一点的Maven的,但你需要有一个释放密钥库编译应用程序。你可以创建一个与密钥工具,这是可以在你的Java bin文件夹:

I don't know how you do that in Maven, but you need to compile your app with a release keystore. You can create one with keytool, which is available in your Java bin folder:

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

在创建它,你必须提供两个密码,一个用于密钥库和一个用于关键。在创建密钥存储,您可以使用Eclipse导出向导来编译在释放模式的应用程序。

When creating it, you must supply two passwords, one for the keystore and one for the key. When your keystore is created, you can use the Eclipse Export wizard to compile your app in release mode.

有关详细信息,请参阅 http://developer.android .COM /工具/出版/ APP-signing.html#releasemode

For further details, please refer to http://developer.android.com/tools/publishing/app-signing.html#releasemode

这篇关于您上传在调试模式下签了字,一个APK。您需要登录您的APK在释放模式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆