How to resolve a signature information mismatch or a missing signature

更新时间:
复制 MD 格式

Problem

The application crashes at runtime and reports the following error: java.lang.Exception: fail to verify patch file as patch signInfo not equal to apk signInfo.

Cause

This error usually occurs because of a signature information mismatch or a missing signature.

Solution

You can sign a patch in two ways:

  • Check the signature settings in the patch tool. Regenerate the patch package and ensure the signature information is consistent.

  • Use a separate signing tool to sign the patch, just as you would a normal APK.

  • Only Java KeyStore (JKS) signature files are supported.