Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Connection to Play Services failed #21

Open
Redman1037 opened this issue Aug 22, 2017 · 5 comments
Open

Connection to Play Services failed #21

Redman1037 opened this issue Aug 22, 2017 · 5 comments

Comments

@Redman1037
Copy link

Redman1037 commented Aug 22, 2017

When I run this project it constantly shows toast "Connection to Play Services failed" . also i cannot select any google account . Using Samsung sduos 2 , Android 7.1.2

@SophiaSonam
Copy link

While creating credentials for OAuth 2.0 client IDs use this
$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
to get the SHA-1 fingerprint.
I also had the same issue, but this worked for me.

@softmarshmallow
Copy link

didnt work for me...

solved this?

@SophiaSonam
Copy link

Yes

@starapple2
Copy link

starapple2 commented Dec 26, 2017

The "Connection to Play Services failed" can sometime be related to permission not being granted to "android.permission.GET_ACCOUNTS" in versions of Android greater than Marshmallow. That is how I solved the problem with Android 7.Then after granting permission I had to set a precondition for launching on versions pre Marshmallow:

if (Build.VERSION.SDK_INT >= 23) {
                // Verify that all required contact permissions have been granted.
}

@alfredmack
Copy link

@Redman1037 Please check this updated fork https://github.com/alfredmack/YouTube-Video-Uploader

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants