UPDATE: Probably fixed in GPS v12 but some people still report that nothing has changed. See this thread on google issue tracker.
I have encountered a problem with detecting Google Play Services availability. I enable GoogleCast feature in my app when user has proper PlayServices version installed.
I check PS availability in the following way:
GoogleApiAvailability.getInstance()
.isGooglePlayServicesAvailable(applicationContext) == ConnectionResult.SUCCESS
However, users which are identified as having PS installed don't really have it. They are getting app crashes during cast initialization. There are few different cast-related app crashes causes:
- Caused by java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$zzc: Remote load failed. No local fallback found.
- Caused by com.google.android.gms.dynamite.DynamiteModule$zzc: Remote load failed. No local fallback found.
- Caused by com.google.android.gms.dynamite.DynamiteModule$zzc: Failed to get module context
- Caused by java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$zzc: No acceptable module found. Local version is 0 and remote version is 0.
All of these crashes occurs while initializing MediaRouteButton. I have searched a lot to figure out what can be wrong and I've found only that PlayServices are not up to date.
It happens on both rooted and non-rooted devices.
Has anyone met with similar problem?