googleworkspace / android-samples

Android samples for Google Workspace APIs
Apache License 2.0
635 stars 410 forks source link

GoogleApiClient connection failed #49

Closed Muran-Hu closed 6 years ago

Muran-Hu commented 8 years ago

Hi all,

When i running the demo, one issue appeared:

I choose my Google Account: muranhu@gmail.com to access Google Drive, but failed. Here is the log message:

I/BaseDriveActivity: GoogleApiClient connection failed: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{419fdaa8: android.os.BinderProxy@419cad20}, message=null}

cf59d4ae-d1d6-4fab-a9a2-889f43fa5248

Is there something wrong or i missed something? Could you please share your advice here? TIA

Thanks Muran

addgoa commented 8 years ago

Same thing happens with me too

Muran-Hu commented 8 years ago

@addgoa, is there any solution?

Muran-Hu commented 8 years ago

@addgoa, please refer to the discussion "not working".

amrbrkt commented 8 years ago

Any solutions ?!

SlagbrandFrontwalker commented 8 years ago

Same Issue happened for me like a month ago. Any sollutions?

alexi190 commented 8 years ago

Hi to resolve this issue go to the google api console from your gmail account. Here you will see a disable button in front of Google drive api. just right to that you will see a gear or setting button click on it and generate oAuth token.

That's it!!

broadxie2 commented 7 years ago
  1. Create project at https://console.developers.google.com
  2. Enable drive api
  3. Create credentials for your project (Add keystore SHA-1 and package name)

Then, you can run the demo .

surajitshome commented 7 years ago

This will work once you create your Google API project and put your SHA-1 and Package name. And, Keep in mind that Your package must not conflict with others project in Google. Hope this works. Register your project in : https://console.developers.google.com and Enable API once project credentials are all set. -Surajit. Happy Coding.

ils-aashishj commented 7 years ago

Still not working only getting statusCode=SIGN_IN_REQUIRED

guntamania commented 7 years ago

The same problem has been occured in my environment. Some of the features works properly but others do not.

I googled and found some articles in StackOverFlow like this how-to-get-driveid-of-created-folder-in-google-drive-android-api but it still doesn't work.

These features work well below:

But these features do not work below:

I think there is still undocumented procedures to run the demo.

guntamania commented 7 years ago

I solved the problem myself. I've forget to set EXISTING_FOLDER_ID and EXISTING_FILE_ID described in the bottom of README.

However I think README is not enough to run this demo because we cannot find out what to set these constants..

rodrigoGA commented 7 years ago

+1

ChillarAnand commented 7 years ago

Any updates on the issue?

nishantsingh1814 commented 7 years ago

Add debug SHA key in Api cloud console oAuth instead of release SHA key

asrivas commented 6 years ago

You no longer need to set the EXISTING_FOLDER_ID and EXISTING_FILE_ID values. I have updated the README in https://github.com/gsuitedevs/android-samples/pull/78.

Please follow the authentication instructions here: https://developers.google.com/drive/android/get-started. If you still have issues with sign in or specific activities (@medaka -- did you try to retrieve on a text file?), please file a separate issue.

ozzy4654 commented 5 years ago

I am having this issue on my work apps. But we are just using the basic sign in. We don't need drive api or anything for our apps. Funny thing it was working for months and now out of the blue it is not. Really annoying. Debug and Release creds on the console are correct too.

Weird thing is sometimes the silent sign in works then after some time it fails and I get that same error. Any ideas?