Sign Android APK with a certificate that expires further in to the future(使用将来会过期的证书签署 Android APK)
问题描述
我已经使用 phonegap 构建了一个 android 应用程序.我现在正在尝试在 Play 商店中获取此内容,但不断收到以下错误
I have built an android app using phonegap build. I am now trying to get this on the play store but keep getting the following error
You uploaded an APK signed with a certificate that expires too soon. You need to sign your APK with a certificate that expires farther into the future
我已经使用 java jdk1.8.0 keytool 创建了签名密钥,并且我已经使用了这个代码
I have created the signing key with java jdk1.8.0 keytool and I have used this code
keytool.exe -genkey -v -keystore release.keystore -alias TicTacToe -keyalg RSA -keysize 2048 -validity 10000
我不明白.据我所知,我将日期设置为 10,000 天后,这应该足够了吗?
I don't understand. As far as I can tell I am setting the date 10,000 days from now which should be plenty?
推荐答案
设置有效期大于50年.
Set expiration to be greater than 50 years.
-validity 20000
这篇关于使用将来会过期的证书签署 Android APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用将来会过期的证书签署 Android APK


基础教程推荐
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01