Google cast ApiClient.connect failed return ConnectionResult{statusCode=Service_INVALID,resolution=null} - google-play-services

In my google cast app of android. When execute to mApiClient.connect(); return failed as following information: ConnectionResult{statusCode=Service_INVALID,resolution=null}.
I have installed google play service v 4-2-43.apk. Why this still happens? Thanks!

I got the solution myself by root my cellphone and reinstall the Google Play Service again.

Related

Unable to connect my Chromecast with my custom receiver

I'm following this guide: https://codelabs.developers.google.com/codelabs/cast-receiver#4 to create a custom receiver. Unfortunately when I try to use the cactool for testing: https://casttool.appspot.com/cactool/ I always get and error regarding my device id: Failed to cast, please try again later. In the browser I get:
My application id: 8FEE03DD
Status: Published
Chromecast serial id: 8917AD6D304
Any idea?
The "is_device_registered" error is caused by the Cast Debug Logger calls which don't work to run in a browser (since it isn't running on the Chromecast device and thus can't find it).
After many iterations and testing I have noticed the following common causes for "Failed to cast. Please try again" while using the code labs setup:
Chromecast caches the application data, so if you for instance updates the Receiver App URL the device has to be restarted before the new URL is used
Ngrok session times out (solved by restarting ngrok and updating the Receiver App URL in the Cast Developer Console)
Observe if you see GET requests from the Chromecast in the http-server console (my CC gen 3 has 'Linux armv71' etc in User-Agent). If so, the Receiver App is configured correctly and your issue is with the code (HTML, js, etc)

Cannot restart Google Cloud VM

I ended my trial period with google cloud, and I have upgraded my account, still my virtual machine is stopped and I get this following error, which I couldn't manage to solve.
Starting VM instance "hasoffer-api" failed. Error: The default network interface [nic0] is frozen.
Can anyone give me a tip to solve this issue?
Many thanks in advance
Most of the times, that error is due to a deletion process of the project or a recently change in your billing account, what it seems to be your problem.
In this case, it is neccesary to file a case to Google Support.

Access Denied popup when logging in with MFP auth framework

I have been seeing this error when trying to login to my app.
It is using the mfp auth framework
any explanation of what this is would be very helpfull
I see this in the simulator, I don't see this on the device, but wl.connect() always fails in the device
This was due to direct update, anytime a direct update happens i get this error, then i have to shut down the app and restart it
I had the same issue in simulator, deleting and reinstalling the app fixed this.

Unable to Connect To GoogleFit

I am trying to connect to Googlefit but i am getting a strange error code as below
E/GooglePlayServicesUtil﹕ Unexpected error code 5005
Does anybody have any idea about this.Thanks In advance
I solved the error with the help of the answer in this post:
https://stackoverflow.com/a/28391583/2977169
#Sumoanand:
I also faced similar problem.
This issue occurs if app is not registered properly in google developer console.
I think you have registered app on Google developer Console using production keystore certificate fingerprint(SHA1) where as you are testing it on app which has debug keystore.
Perform following steps:
Create one more client Id using debug keystore certificate fingerprint(SHA1).
Uninstall existing app.
Install app & connect to Google fit.
Check under google fit app & make sure that your app is listed as a connected app (... > Settings > Connected apps > Connected apps & devices).
Now run the above code & it will work !!!
I had this error and the consent screen had been filled in correctly. The only way I could get around this was to delete the project and re-create it.
I changed my device date time to past time before connect to Google Fit and I got error 5005.
After changed to current time, it works :)

Android : c2md implementation

I am implementing the c2md, in phone android 2.2,
I have follow the all the steps from http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html
and use the php code from C2DM implementation PHP code ,i get response id=0:1323075593128502%2fd4838f00000031 but i can not get the notification of phone.also i have try with command prompt.
Does anyone idea where i have made the mistake.
Also register the account on google.
Firewall issue, probably? Try when the device is on 3G, as opposed to WiFi.