After adding Bitmovin Cast in Android project I get a lot of same issues from different devices.
This solution didn't help.
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(getContext())
- returns 0 (SUCCESS)
But app crashes.
Caused by java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
at com.google.android.gms.internal.cast.zze.zzf(Unknown Source:51)
at com.google.android.gms.internal.cast.zze.zza(Unknown Source:1)
at com.google.android.gms.cast.framework.CastContext.(Unknown Source:37)
at com.google.android.gms.cast.framework.CastContext.getSharedInstance(Unknown Source:6)
at com.bitmovin.player.BitmovinPlayer.(SourceFile:106)
at com.bitmovin.player.BitmovinPlayer.(SourceFile:82)
at com.bitmovin.player.BitmovinPlayer.(SourceFile:71)
at com.bitmovin.player.BitmovinPlayerView.(SourceFile:134)
at com.bitmovin.player.BitmovinPlayerView.(SourceFile:120)
So, Google Play services version is ok.
According to this article code like this can help:
fun isCastApiAvailable(): Boolean {
val isCastApiAvailable = isNotTv(context)
&& GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == ConnectionResult.SUCCESS
try {
CastContext.getSharedInstance(context)
} catch (e: Exception) {
// track non-fatal
return false
}
return isCastApiAvailable
}
But in my case, this is Bitmovin issue
It's because either your device or emulator has an out-dated version of Google Play services. Right above your error you should see something in the log cat that says
Google Play services out of date. Requires 3264100 but found 3225132
Just update the Google Play services and it'll work.
source https://github.com/googlesamples/android-UniversalMusicPlayer/issues/97
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With