我在我的应用程序上使用BiometricPrompt。当我尝试在 OnePlus 设备上使用并使用未在操作系统上注册的另一个手指验证指纹时,它将触发回调onAuthenticationFailed()并且生物识别提示将被忽略。第一次尝试时就会发生这种情况。是否可以让用户多次失败(在文档中,我们在 30 秒内失败了 5 次,在第 5 次尝试后应该触发onAuthenticationError(int errorCode, @NonNull CharSequence errString)7 作为错误代码)而不关闭对话框?
biometrics android-fingerprint-api android-biometric-prompt oneplus6t oneplus7
我是一名 Android 开发人员,面临着一个非常严重的问题,但在任何地方都没有提到解决方案。
我正在尝试在我的 oneplus6t 上运行 Expresso 自动化测试。但是一年中的每一次我都无法测试。
错误信息是这样的:
"Testing started at 09:46 AM ...
04/20 09:46:21: Launching 'ASyncSettingsTest' on OnePlus ONEPLUS A6010.
Running tests
$ adb shell am instrument -w -r -e debug false -e class 'com.declaree.declaree.ASyncSettingsTest' com.demo.test/androidx.test.runner.AndroidJUnitRunner
Timed out waiting for process (com.demo) to appear on oneplus-oneplus_a6010-21663687."
Run Code Online (Sandbox Code Playgroud)
它适用于模拟器和其他制造设备,如像素、moto、三星。
我在开发人员选项中也没有找到类似的东西。
为了运行测试,我必须自己打开应用程序然后它才能运行。
仅供参考:重启、重置、擦除缓存不起作用。
我在 Android Studio 3.6.2 中工作
有人有任何解决方案吗?提前致谢。