Google Android Drive api登录在安装的版本上失败 [英] Google Android Drive api sign in fails on installed version

查看:149
本文介绍了Google Android Drive api登录在安装的版本上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个使用GoogleDrive api的android应用程序,在调试或运行调试版本时,应用程序
可以正常工作,正确验证附加的谷歌帐户..等等。
当我创建一个发行版本时,(使用我的签名密钥)和
安装apk文件,当我运行
时,Googleapiclient无法连接,使用相同的
在调试下工作的Google帐户,
在尝试一次解析后给我一个登录失败消息。

解决方案

解决方案就在这里 https://developers.google.com/drive/android/get-started



我需要创建一个单独的OAuth 2.0我的应用程序的
发布版本的客户端ID,使用我释放键中的sha1键


I have developed an android application that uses the GoogleDrive api,

When under debug or running the debug version, the application works fine, and correctly authenticates to the attached google account..etc. When I build a release version, (with my signed keys), and install the apk file, when I run, the Googleapiclient fails to "connect", using the same google account that works under debug, giving me a "Sign in Failed" message, after it tries once to resolve.

解决方案

solution was here https://developers.google.com/drive/android/get-started

I need to create a seperate OAuth 2.0 client ID for the released version of my application, using the sha1 key from my release key.

这篇关于Google Android Drive api登录在安装的版本上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆