一、Api授权的问题 不然会返回 验证取消 错误 Authentication canceled
在 对应测试的项目中 APls & Services中,添加Google Drive API并激活
二、 SHA1签名是否一致 是否2个签名(应用签名签名、上传证书签名)都添加到了 验证凭据列表
通过下面的命令 生成SHA1签名 对比google后台的上传证书签名是否一致
(run this command on C:\Users\<user name>\.android directory)
keytool -list -v -alias <your-key-name> -keystore <path-to-production-keystore>
在GoogleplayStore开发者管理中复制两个SHA1信息
打开谷歌应用凭据(https://console.developers.google.com/apis/credentials),将两个SHA1都添加进凭据列表中
参考链接:
https://developers.google.com/android/guides/client-auth
三、Authentication fail: Returning error code, result:DeveloperError
这个错误是因为 如果要请求id token进行服务器2次验证,就需要用Web client Id,而不是 普通的client id. 需要到google后台凭据列表中 添加,
参考链接:
https://github.com/playgameservices/play-games-plugin-for-unity/issues/3105
本文档详细介绍了在使用Google Drive API时遇到的授权问题和解决方案,包括如何在APIs & Services中激活Google Drive API,检查SHA1签名的一致性,以及在Google后台添加WebclientID以避免AuthenticationFailed错误。同时提供了相应的命令行工具和链接资源,帮助开发者正确配置和验证应用程序。
https://blog.youkuaiyun.com/m0_37698386/article/details/106289041
714

被折叠的 条评论
为什么被折叠?



