简体   繁体   English

集成HMS Core Safety Detect的SysIntegrity API报错

[英]An error is reported when the SysIntegrity API of HMS Core Safety Detect is integrated

The following error information is displayed when I integrate the SysIntegrity API of HMS Core Safety Detect:我在集成HMS Core Safety Detect的SysIntegrity API时出现如下错误信息:

Failed to read meta data for the AppID. D/SafetyDetectRepositoryImpl: unknown status code: 907135000

My code is as follows:我的代码如下:

SafetyDetect.getClient(getActivity())
            .sysIntegrity(nonce, APP_ID)
            .addOnSuccessListener(new OnSuccessListener<SysIntegrityResp>() {
          ...
})
.addOnFailureListener(new OnFailureListener() {
          ...
});

Verify that android:name and android:appid in meta-data in the AndroidManifest.xml file are correctly configured.验证 AndroidManifest.xml 文件中元数据中的 android:name 和 android:appid 配置是否正确。 The value of android:appid should be the actual app ID. android:appid 的值应该是实际的app ID。

1.Error code 907135000:Verify that related input parameters are correctly set, for example, appid in the manifest file and whether to use the certificate signature. 1.错误码907135000:验证相关输入参数是否设置正确,如manifest文件中的appid、是否使用证书签名等。

2.Checking Steps: a. 2.检查步骤: check agc plugin cofig: Must be added in application module as below apply plugin: 'com.android.application' apply plugin: 'com.huawei.agconnect' b.检查agc plugin cofig:必须在应用模块中添加如下应用插件:'com.android.application'应用插件:'com.huawei.agconnect' b. check json file dowloaded from agc and add in your proj as below json file检查从 agc 下载的 json 文件并添加到您的项目中,如下所示json 文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM