Error implementing GoogleApiClient Builder for Android development

I see in their documentation where they clearly instruct you to include this import: import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; However, the error being thrown is expecting a different class than GooglePlayServicesClient.ConnectionCallbacks, it’s asking for GoogleApiClient.ConnectionCallbacks. Try changing your implements to use the more-qualified class name. That looks to be the only possible thing throwing the code for a … Read more

How do I add/create/insert files to Google Drive through the API?

The documentation on insert operations already contains examples in a bunch of programming languages, here is how to do it using the HTTP based protocol of the Google Drive API. First, POST the new file metadata to the Drive endpoint. It has to be in the form of a File resource JSON object: POST /drive/v2/files … Read more

Google OAuth 2.0 failing with Error 400: invalid_request for some client_id, but works well for others in the same project

Please see https://stackoverflow.com/a/71491500/1213346 for a “proper” solution. This answer is just an ugly workaround that the community seems to like. … Here is a cringy workaround for this situation: Replace urn:ietf:wg:oauth:2.0:oob with http://localhost:1/ in the code posted in the question. This makes the flow go through, my browser gets redirected and fails and I get … Read more

Google Play Developer API – “The current user has insufficient permissions to perform the requested operation.”

There is a very important thing about receipt validation using Google Play Android Developer API. If you added your in-app product BEFORE granting permission or linking to your service account, you need to open “In-app products” and perform some update. You can for example edit description of your product and save. You should instantly get … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)