升级 SDK 至 2.1.7 版本:
implementation 'ai.advance.mobile-sdk.android:liveness-detection:2.1.7'同步 gradle 后会出现导包错误,将报错类 import 的路径由 ai.advance.liveness.lib 更改为:aai.v2liveness,如:
import ai.advance.liveness.lib.GuardianLivenessDetectionSDK;
->
import aai.v2liveness.GuardianLivenessDetectionSDK;IMediaPlayer.isPlayEnable()方法已移除,使用 mLivenessView.isSoundPlayEnable() 替代
如果 LivenessActivity 位于 ai.advance.liveness.activity ,请将此类的包路径修改,不可使用ai.advance.liveness 作为类路径
如果您依赖的是 ui 库,请修改依赖版本为(ui库不需要升级到2.1.7):
implementation 'ai.advance.mobile-sdk.android:liveness-detection-ui:2.1.6'
修改 xml 中 LivenessView 节点的路径:aai.v2liveness.LivenessView
virustotal 检测链接:https://www.virustotal.com/gui/file/44ff50a89bf9d90ab7c16fb079c7a7fe3e36a7870bd957fcd4d35dcc62c5a969