连接到谷歌播放服务失败 [英] Connection to google Play Services Failed
问题描述
我试图使用此 YouTube直接精简版应用程序为Android项目上传视频 https://code.google.com/p/ytd-android/
我执行了链接中提到的所有步骤。
在我的android设备上运行的应用程序正常,但我收到敬酒Connection to Play Services失败和发生内部错误敬酒。
以及此日志错误:
05-07 11:17 :33.659:E / com.google.ytdl.UploadsListFragment(3140):连接到Play Services失败,错误:4,原因:ConnectionResult {statusCode = SIGN_IN_REQUIRED,resolution = PendingIntent {41836358:android.os.BinderProxy@41779308}}
为了找出问题所在,我搜索了我在这里生成的api密钥:
https://code.google.com/apis / console
简单的API访问
当您不需要时使用API键来标识您的项目访问用户数据。了解更多信息
Android应用(带证书)密钥
API密钥:
xxxxxxxxxxxxxxxxxx
Android应用:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; com.google.ytdl
已激活:2013年4月16日上午11点30分
激活方式:xxxxx@gmail.com - you
<它看起来很好。
我点击这些链接:
https://developers.google.com/+/mobile/android/sign-in
http://developer.android.com/google/play-services/auth.html#choose
任何人都遇到过这个问题,并知道问题所在?我唯一能想到的就是api的关键,但它似乎是正确的,帮助...
edite:
访问令牌
mToken =
GoogleAuthUtil.getToken(MainActivity.this,mChosenAccountName ,oauth2:
+ Scopes.PLUS_PROFILE ++ YouTubeScopes.YOUTUBE +
+ YouTubeScopes.YOUTUBE_UPLOAD);
最近我有一个类似的错误。我通过在Google API控制台中添加正确的信息,特别是在API访问面板中解决了这个问题。
在我的情况下,我错过了一个OAuthClient 2.0 id。文档此处
i trying to upload video using this YouTube Direct Lite App for Android project https://code.google.com/p/ytd-android/
I performed all the steps mentioned in the link.
the appliction run in my android device fine but i recive toast "Connection to Play Services failed" and "An internal error occurred" toast.
and this log error:
05-07 11:17:33.659: E/com.google.ytdl.UploadsListFragment(3140): Connection to Play Services Failed, error: 4, reason: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{41836358: android.os.BinderProxy@41779308}}
In order to find out what the problem is, i chacked the api key that i generated in here :
https://code.google.com/apis/console
Simple API Access
Use API keys to identify your project when you do not need to access user data. Learn more
Key for Android apps (with certificates)
API key:
xxxxxxxxxxxxxxxxxx
Android apps:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;com.google.ytdl
Activated on: Apr 16, 2013 11:30 AM
Activated by: xxxxx@gmail.com – you
and it look fine.
i red those links : https://developers.google.com/+/mobile/android/sign-in http://developer.android.com/google/play-services/auth.html#choose
Anyone encountered this and know what is due to the problem? The only thing I can think of it's the api key but it seems proper, help ...
edite :
Access Token
mToken =
GoogleAuthUtil.getToken(MainActivity.this, mChosenAccountName, "oauth2:"
+ Scopes.PLUS_PROFILE + " " + YouTubeScopes.YOUTUBE + " "
+ YouTubeScopes.YOUTUBE_UPLOAD);
I had a similar error recently. I solved it by adding the correct information in the Google APIs Console, specifically in the API Access pane.
In my case I was missing an OAuthClient 2.0 id. Documentation here
这篇关于连接到谷歌播放服务失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!