Phonegap 非调试模式和使用许可证密钥签名 [英] Phonegap non debug mode and signing with license key

查看:20
本文介绍了Phonegap 非调试模式和使用许可证密钥签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 phonegap 中完成了一个应用程序,并想将它发布到谷歌应用程序商店.每次我下载 apk 文件时,它都处于调试模式.我如何使用密钥或密钥库对其进行签名以将其上传到 google play,因为 google 不会在调试模式下将其上传到我的帐户中.

I've completed a app in phonegap and would like to publish this on the google app store. Every time I download the apk file its in debug mode. How do I go about signing it with a key or keystore to get this to upload into google play as google will not upload it into my account in debug mode.

我做错了什么,但在 build.phonegap.com 中看不到如何为应用签名?

I'm doing something wrong but can not see how in build.phonegap.com you can sign the app?

请帮忙

谢谢

推荐答案

从终端或命令提示符使用此命令生成密钥库文件:

Use this command from the terminal or command prompt to generate keystore file:

keytool -genkey -v -keystore myAppKey.keystore -alias myAppKey -keyalg RSA -validity 10000

这将生成 myAppKey.keystore 文件.

您必须在应用程序设置下的 build.phonegap.com 站点上传.在那里您将获得签名设置,因此添加您的keystore,然后为您的应用程序选择该签名密钥.

That you have to upload at build.phonegap.com site under your application settings. There you will get signing settings so add your keystore and then select that signing key for your application.

通过此 phonegap 将重新生成 android 版本,您将获得用于在 google play 市场上发布的 APK.

By this phonegap will regenerate android builds and you will get APK which will be used to publish in the google play market.

参考:

Google 建议如何创建 Android 密钥库

这篇关于Phonegap 非调试模式和使用许可证密钥签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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