Verbindung zu Google Play Services fehlgeschlagen
Ich versuche, Videos mit diesem hochzuladenYouTube Direct Lite App für Android-Projekthttps://code.google.com/p/ytd-android/
Ich habe alle im Link genannten Schritte ausgeführt.
Die Anwendung läuft in meinem Android-Gerät einwandfrei, aber ich erhalte Toast "Verbindung zu Play Services fehlgeschlagen" und "Ein interner Fehler ist aufgetreten" Toast.
und dieser Log-Fehler:
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}}
Um herauszufinden, was das Problem ist, habe ich den API-Schlüssel, den ich hier generiert habe, gehackt:
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: [email protected] – you
und es sieht gut aus.
Ich rede diese Links:https://developers.google.com/+/mobile/android/sign-in http://developer.android.com/google/play-services/auth.html#choose
Ist dies jemandem begegnet und weiß, woran das Problem liegt? Das Einzige, was ich mir vorstellen kann, ist der API-Schlüssel, aber es scheint angebracht zu sein, helfen Sie ...
edite:
Zugangstoken
mToken =
GoogleAuthUtil.getToken(MainActivity.this, mChosenAccountName, "oauth2:"
+ Scopes.PLUS_PROFILE + " " + YouTubeScopes.YOUTUBE + " "
+ YouTubeScopes.YOUTUBE_UPLOAD);