问题描述
我目前在 Google Play 中发布了一个 Android 应用,我会定期更新该应用.我按照以下流程在新推送之前签署应用程序:
I have an android app currently published in Google Play which I update periodically. I follow the following process to sign the app before a new push:
在项目上按鼠标右键,Android 工具"-> 导出已签名的应用程序包提供密钥库密码签署您的应用程序将 apk 文件上传到 Google Play Developer Console
Press right-mouse on the project, the 'Android tools' -> export signed application packageProvide keystore passwordSign your appUpload the apk file into Google Play Developer Console
最近我将项目从 Eclipse 导入到 Android Studio 并继续在 Android Studio 上工作.现在我计划在应用程序中推送修复.我想我有这个选项可以在 android studio 中签署 apk
Recently I have imported the project from Eclipse to Android Studio and continued working on Android Studio. Now I am planning to push a fix in the app. I have figured that I have this option to sign apk in android studio
Build -> Generate Signed apk ->
Build -> Generate Signed apk ->
根据我的理解,对于我的 android 应用程序,我必须使用我之前用于将更新推送到 Google Play 的相同密钥库和密钥库密码.同样在这里它要求密钥别名和密钥密码.我不记得在 Eclipse 中签署 apk 时的密钥别名和密钥密码(图像中输入的数字 4).有什么建议我现在可以做什么?如果我已经知道我的密钥库和密钥库密码,有没有办法找回密钥别名和别名密钥密码?
As per my understanding, for my android app I have to use the same key store and key store password which I used earlier to push updates into Google Play. Also here it's asking for Key Alias and Key Password. I don't remember the Key Alias and Key password(number 4 input in the image) while signing apk in Eclipse. Any suggestion what can I do now? If I already know my keystore and keystore password, is there an way to retrieve the key alias and alias key password?
更新:现在我可以通过 keytool -list -v -keystore name.keystore 命令检索我的密钥别名
Update: Now I can retrieve my key alias through keytool -list -v -keystore name.keystore command
推荐答案
我终于找到了问题所在.
I finally could figure the issue out.
获取密钥别名:我将 keytool.exe 和我的密钥库文件复制到 C:\Program Files\Java\jdk1.7.0_71\bin 文件夹中.然后从命令提示符我写道: keytool -list -v -keystore .keystore
然后它还会要求输入密钥库密码.然后它会显示密钥别名和证书指纹等信息.
To get the Key Alias: I copied the keytool.exe and my keystore file into C:\Program Files\Java\jdk1.7.0_71\bin folder. Then from command prompt I wrote: keytool -list -v -keystore <name>.keystore
It will also ask for keystore password then. Then it will show you the key alias and Certificate fingerprints and other info.
然后我再次尝试为项目生成签名的 Apk,我提供了密钥库、密钥库密码、密钥别名并提供了相同的密码.然后它要求输入主密码,我尝试了相同的方法,但失败了.使用重置选项,我在这里重置了主密码.
Then I again tried to Generate Signed Apk for the project, I provided keystore, keystore password, key alias and provided the same password. Then it asks for master password, I tried with the same and it failed. With the reset option I reset the master password here.
这篇关于如何在 android studio 中检索已签名 APK 的密钥别名和密钥密码(从 Eclipse 迁移)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!