任务 ':app:packageRelease' 执行失败。
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade com.android.ide.common.signing.KeytoolException: Failed to read key key from store "/Users/husseinawaesha/key.jks": Invalid keystore format
最佳答案
Play 管理中心帮助页面中的这条命令行语句将生成一个上传 keystore ,您只需替换您自己的别名并提供 keytool 的路径...
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks
但是,虽然它确实要求输入存储密码,但它不会要求输入 key 密码。如果你像我一样是新手,你可能不会注意到,后来当你必须输入 key 密码时,你可能会发现自己在翻阅笔记试图找到你写下来的地方。如果您输入诸如 keypassword 之类的内容作为猜测,它将以 Invalid keystore format 响应。
最好使用Android Studio进程生成一个Upload Keystore而不是这个命令行语句。
关于android - 如何解决无效的 keystore 格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66846074/