即使升级 CN1 库后,指纹库也会在新的 Android 设备上崩溃

问题描述 投票:0回答:1

我的应用程序出现问题,该应用程序曾经在旧的 Android 设备上运行,我正在尝试升级该应用程序。我已经为该项目安装了 CN1 库中的 FingerPrintScanner 新版本 15。当设备上的触摸指纹处于活动状态时,此问题会很明显。如果有什么想法请告诉我

Fingerprint.scanFingerprint(value -> {
                            username.setText(Preferences.get("username", "").trim());
                            password.setText(Preferences.get("password", "").trim());
                            appNameField.setText(Preferences.get("applicationName", "").toUpperCase().trim());
                            authorizeLogin(username, password, appNameField, lastApps);
                            revalidate();
                        }, (sender, err, errorCode, errorMessage) -> {
                            ToastBar.showErrorMessage("Finger Print Scan Failed or Cancelled!!", 4000);
                        });```
codenameone
1个回答
0
投票

当您调用

scanFingerprint
时,您必须为其提供原因字符串,而不是空白字符串。这用作标题,这是您收到的错误的来源。用户收到一条提示,指示应用程序需要授权的原因,该提示不能为空。

© www.soinside.com 2019 - 2024. All rights reserved.