集成HMS Core Safety Detect的SysIntegrity API报错

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

我在集成HMS Core Safety Detect的SysIntegrityAPI时出现如下错误信息:

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

我的代码如下:

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

验证 AndroidManifest.xml 文件的元数据中的 android:name 和 android:appid 是否正确配置。 android:appid 的值应该是实际的应用程序 ID。

1.Error代码907135000:Verify相关入参设置是否正确,例如manifest文件中的appid,是否使用证书签名。

2.Checking 步骤: 一种。检查 agc plugin cofig:必须添加到应用程序模块中,如下所示 应用插件:'com.android.application' 应用插件:'com.huawei.agconnect' b.检查从 agc 下载的 json 文件并添加到您的项目中,如下所示 json file