Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No acceptable module found. Local version is 0 and remote version is 0

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.

like image 932
ChebTS Avatar asked Feb 05 '19 20:02

ChebTS


2 Answers

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

like image 81
ChebTS Avatar answered Sep 18 '22 00:09

ChebTS


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

like image 28
Yuliia Ashomok Avatar answered Sep 21 '22 00:09

Yuliia Ashomok