我遇到KeySignature错误,该如何解决?

时间:2019-01-27 10:02:44

标签: android jks google-console-developer

enter image description here

我已在Google控制台中发布了我的应用程序,并与google开发人员帮助台联系,并在google控制台上上传了新的jks,我尝试使用新的jks生成,但出现此错误 如何解决这个问题?

我尝试使用其他别名,但无法解决,可能是我忘记了别名,但是我确定其名称为key0 ..

Something went wrong with the encryption tool

java.lang.NullPointerException: No key for alias: key0
    at com.google.wireless.android.vending.developer.signing.tools.extern.export.Utils.checkNotNull(Utils.java:55)
    at com.google.wireless.android.vending.developer.signing.tools.extern.export.KeystoreHelper.extractPrivateKey(KeystoreHelper.java:56)
    at com.google.wireless.android.vending.developer.signing.tools.extern.export.KeystoreHelper.getPrivateKey(KeystoreHelper.java:35)
    at com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.run(ExportEncryptedPrivateKeyTool.java:98)
    at org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard$2.run(ExportSignedPackageWizard.java:232)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:736)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
    at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

2 个答案:

答案 0 :(得分:0)

获取一些二进制编辑器,并查看其中的私钥文件。您可能会找到别名。

NB。该文件中的大写字母转换为小写。

答案 1 :(得分:0)

您可以列出密钥库中的所有证书,例如

在Linux上

keytool -list -v -keystore keystore.jks | grep "Alias name\|Creation date"

在Windows上

keytool -list -v -keystore keystore.jks | findstr "Alias Creation"