gpt4 book ai didi

Android - 在 Android API 17 中使用指纹 API

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:36:04 24 4
gpt4 key购买 nike

最近,Google 允许开发者在 Android 6.0 (API 23) 中使用 Fingerprint API。

我有一个 android 项目,compiledSdkVersion 23minSdkVersion 17

我的问题是:我可以在我的项目中使用 Fingerprint API,我尝试在我的项目中使用 Google 示例,但我收到此错误消息:

Class Requires API level 23 (current min is 17)

如果可以的话,我将不胜感激任何人给我一个很好的教程。

谢谢

最佳答案

您可以使用 Support Library v4 来支持小于 23 的 minSdk。您必须相应地使用类名,例如FingerprintManagerCompat等

检查 this github sample

关于Android - 在 Android API 17 中使用指纹 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36788462/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com