将 der 文件导入 keystore 后如下
keytool -keystore my-release-key.keystore -importcert
-file ~/Downloads/upload_cert.der -alias uploadcert
尝试组装发布版 APK 时出现错误
trusted certificate entries are not password-protected
如果我添加
-protected
导入,我得到
keytool error: java.lang.IllegalArgumentException: password can't be null
如果我在 -protected 之后传递密码,我会收到使用帮助消息。
不知道如何传递密码。
知道我是否在正确的路径上使用 google 上传证书文件进行签名吗?
最佳答案
遇到同样的问题,密码不能为空问题可以通过编辑如下评论来传递:
keytool -keystore parkimayaz.keystore -importcert -file
~/Downloads/upload_cert.der -alias uploadcert -keypass "yourpass" -
storepass "yourpass"
另一个信息我在密码部分使用了像 (',#,^) 这样的字符,这给了我一些错误。
也请看看oracle keytool docs
关于apk - 如何使用谷歌上传 key 文件签署APK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46801991/