2023最新版本的Delphi11.3新增了一个生物识别组件,该组件原生支持手机移动设备的指纹、人脸等功能。
想要在Android项目上使用FireMonkey的TBiometricAuth组件,并在程序运行时收到以下错误?
Exception 'first chance' à $00000078E56E103C. Classe d'exception EJNIException avec un message 'android.content.ActivityNotFoundException: Unable to find explicit activity class {com.embarcadero.firemonkey.biometricauth.BiometricFragmentActivity}; have you declared this activity in your AndroidManifest.xml?'. Processus TBiometricAuthSample.apk (24961)
解决方法:在项目选项的权限列表中检查“生物识别授权服务”
如果选中Android应用程序请求的权限列表中的“使用生物识别技术”。
更正后,重新生成项目并重试。