Android Kotlin Fingerprint - Binder 已最终确定

pau*_*aap 5 android fingerprint kotlin

我在使用 Kotlin 处理指纹身份验证时遇到问题。指纹认证成功,用户登录后,总是报此异常:

E/System: Uncaught exception thrown by finalizer
E/System: java.lang.IllegalStateException: Binder has been finalized!
          at android.os.BinderProxy.transactNative(Native Method)
          at android.os.BinderProxy.transact(Binder.java:618)
          at android.security.IKeystoreService$Stub$Proxy.abort(IKeystoreService.java:1341)
          at android.security.KeyStore.abort(KeyStore.java:519)
          at android.security.keystore.AndroidKeyStoreCipherSpiBase.finalize(AndroidKeyStoreCipherSpiBase.java:744)
          at android.security.keystore.AndroidKeyStoreUnauthenticatedAESCipherSpi$CBC$PKCS7Padding.finalize(AndroidKeyStoreUnauthenticatedAESCipherSpi.java)
          at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:224)
          at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:211)
          at java.lang.Thread.run(Thread.java:760)
Run Code Online (Sandbox Code Playgroud)

我真的不明白为什么它给我这个例外。该应用程序不会关闭,没有任何问题。但由于我有点完美主义者,我不想出现这个错误,所以我真的希望你们中的一些人可以帮助我:(