Phenomenon of the problem

The developed game was submitted to Huawei for review, but the result was rejected: After the game started, the HMS Core update prompt popped up. Click “Update later” and repeatedly pull up the upgrade prompt, but the game could not be entered.

Log analysis

We contacted Huawei and provided our exception log, which showed the following error:

E/HMSSDK_X509CertUtil(11044): Not include alias 052root

E/HMSSDK_X509CertUtil(11044): rootCert is null,verify failed

E/HMSSDK_HMSPackageManager(11044): failed to verify cert chain

E/HMSSDK_HMSPackageManager(11044): checkSinger failed

E/HMSSDK_HMSPackageManager(11044): Failed to find HMS apk

I/HMSSDK_AvailableAdapter(11044): HMS is not installed

Because this error is not our business, we contacted Huawei technical support for communication.

The hMSrootcas. BKS certificate file is missing. If this file is missing, HMS Core will fail to be upgraded.

Problem solving

The BKS certificate file will be automatically placed in assets of APK when it is packaged. This will not be a problem.

However, if you use Eclipse to download the HMS Core SDK package locally, omissions or errors may cause the loss of the resource file. You can download and import the resource file again by referring to the following documents:

Developer.huawei.com/consumer/cn…

Here I do use eclipse to integrate version 5.0.5.300 SDK. The missing resource file is as follows:

After updating this resource, the problem is resolved.

The original link: developer.huawei.com/consumer/cn…

Original author: Mayism