gpt4 book ai didi

android - Google Smart Lock 对话框未出现在 Android O 设备中

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:59:43 24 4
gpt4 key购买 nike

我最近将 GoogleSmartLock 与我的应用程序集成在一起。不知何故,保存对话框不会出现在 Android O 设备中,并且 API 会抛出以下错误。

The Credentials API's save confirmation dialog has been disabled to avoid conflicts with the Android Autofill feature. This choice may be overridden via AuthCredentialsOptions.Builder.forceEnableSaveDialog()., resolution=null}

我查看了 playservices 的最新发行说明,发现以下 API 可以解决此问题。

Auth.AuthCredentialsOptions.Builder forceEnableSaveDialog ()

但我不确定如何将此 api 与 GoogleApIClient 一起使用,因为它没有技术上应返回 AuthCredentialOptions 实例的构建方法。如果有人遇到同样的问题,请告诉我。

最佳答案

更新 1:此问题已在最新版本(版本 11.8.0)中得到解决:

代码示例(以及有关使用 .forceEnableSaveDialog 的更多文档)可在 overview documentation 的“Targeting Android O and above”部分找到。并已更新为使用新的选项类。

关于android - Google Smart Lock 对话框未出现在 Android O 设备中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47168873/

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