[英]Can't generate a signed APK
I just upgraded my Android Studio to version 3.3.1
and also migrated my project to AndroidX
now the issue is when I try to generate a signed APK for the project it keeps failing with this error message:我刚刚将我的 Android Studio 升级到
3.3.1
版,并将我的项目迁移到AndroidX
现在问题是当我尝试为项目生成签名的 APK 时,它一直失败并显示以下错误消息:
java.util.concurrent.ExecutionException: java.lang.RuntimeException: jarsignerfailed with exit code 1 : jarsigner: key associated with mykolo not a private key
java.util.concurrent.ExecutionException: java.lang.RuntimeException: jarsignerfailed with exit code 1 : jarsigner: 与 mykolo 关联的密钥不是私钥
I'm certain that the password key and alias I am using are all correct so I would appreciate anyhelp我确定我使用的密码密钥和别名都是正确的,所以我很感激任何帮助
On the terminal enter : keytool -v -list -keystore path_to_yout_keystore在终端输入:keytool -v -list -keystore path_to_yout_keystore
you will get a warning like that你会收到这样的警告
Warning: The JKS keystore uses a proprietary format.警告:JKS 密钥库使用专有格式。 It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore path_to_yout_keystore -destkeystore path_to_yout_keystore -deststoretype pkcs12"
建议使用“keytool -importkeystore -srckeystore path_to_yout_keystore -destkeystore path_to_yout_keystore -deststoretype pkcs12”迁移到行业标准格式PKCS12
with this command keytool -importkeystore -srckeystore path_to_yout_keystore -destkeystore path_to_yout_keystore -deststoretype pkcs12使用此命令 keytool -importkeystore -srckeystore path_to_yout_keystore -destkeystore path_to_yout_keystore -deststoretype pkcs12
you will get the recommanded format keystore您将获得推荐格式的密钥库
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.