gapu / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

CastRemoteDisplayLocalService crashes at startup on Galaxy Nexus with stock Android 4.3 #596

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am following this tutorial:
https://developers.google.com/cast/docs/remote

Same code works fine on Nexus 5 with latest Android 5.1, but crashes on Galaxy 
Nexus with Android 4.3 build JWR66Y.

It crashes after CastRemoteDisplayLocalService.startService() was called, and 
before CastRemoteDisplayLocalService.Callbacks().
Stack trace:
    java.lang.IllegalArgumentException
            at android.os.Parcel.readException(Parcel.java:1435)
            at android.os.Parcel.readException(Parcel.java:1385)
            at com.google.android.gms.common.internal.zzp$zza$zza.zza(Unknown Source)
            at com.google.android.gms.common.internal.zzi.getRemoteService(Unknown Source)
            at com.google.android.gms.common.api.zze.zzmG(Unknown Source)
            at com.google.android.gms.common.api.zze.zzmD(Unknown Source)
            at com.google.android.gms.common.api.zze.zzg(Unknown Source)
            at com.google.android.gms.common.api.zze$zzc.onReportServiceBinding(Unknown Source)
            at com.google.android.gms.common.internal.zzi$zzh.zznO(Unknown Source)
            at com.google.android.gms.common.internal.zzi$zza.zzc(Unknown Source)
            at com.google.android.gms.common.internal.zzi$zza.zzr(Unknown Source)
            at com.google.android.gms.common.internal.zzi$zzc.zznQ(Unknown Source)
            at com.google.android.gms.common.internal.zzi$zzb.handleMessage(Unknown Source)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:5103)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
            at dalvik.system.NativeStart.main(Native Method)

Android Studio 1.2.2
dependencies {
    compile 'com.google.android.gms:play-services-ads:7.5.0'
    compile 'com.google.android.gms:play-services-cast:7.5.0'
    compile 'com.android.support:mediarouter-v7:22.2.0'
}

Best Regards,
Eugene

Original issue reported on code.google.com by eugene.k...@gmail.com on 17 Jun 2015 at 6:56

GoogleCodeExporter commented 9 years ago
Remote display is supported on Android 4.4 (API level 19) and later. Please 
refer to compatibility section of the documentation in the link you provided. 

Original comment by na...@google.com on 17 Jun 2015 at 4:58

GoogleCodeExporter commented 9 years ago
Sorry, my fault. Thank you.

Original comment by eugene.k...@gmail.com on 17 Jun 2015 at 5:10