活页夹调用到错误的接口

时间:2018-07-06 05:12:53

标签: java android android-tv

我试图为android box构建android应用。在我的场景中,我的应用程序需要使用HDMI输入来流式传输直播电视频道。为什么会出现这种异常? 任何帮助减缓此错误的方法将不胜感激!

谢谢!

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{eu.danman.zidostreamer.zidostreamer/eu.danman.zidostreamer.zidostreamer.MainActivity}: java.lang.SecurityException: Binder invocation to an incorrect interface
   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
   at android.app.ActivityThread.-wrap11(ActivityThread.java)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345)
   at android.os.Handler.dispatchMessage(Handler.java:102)
   at android.os.Looper.loop(Looper.java:148)
   at android.app.ActivityThread.main(ActivityThread.java:5458)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Caused by java.lang.SecurityException: Binder invocation to an incorrect interface
   at android.os.Parcel.readException(Parcel.java:1620)
   at android.os.Parcel.readException(Parcel.java:1573)
   at com.mstar.android.tv.ITvService$Stub$Proxy.getTvCommon(ITvService.java:365)
   at com.mstar.android.tv.TvManager.getTvCommon(TvManager.java:205)
   at com.mstar.android.tv.TvCommonManager.getService(TvCommonManager.java:136)
   at com.mstar.android.tv.TvCommonManager.getCurrentInputSource(TvCommonManager.java:166)
   at eu.danman.zidostreamer.zidostreamer.MainActivity.changeInputSource(MainActivity.java:49)
   at eu.danman.zidostreamer.zidostreamer.MainActivity.enableHDMI(MainActivity.java:69)
   at eu.danman.zidostreamer.zidostreamer.MainActivity.onCreate(MainActivity.java:89)
   at android.app.Activity.performCreate(Activity.java:6251)
   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
   at android.app.ActivityThread.-wrap11(ActivityThread.java)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345)
   at android.os.Handler.dispatchMessage(Handler.java:102)
   at android.os.Looper.loop(Looper.java:148)
   at android.app.ActivityThread.main(ActivityThread.java:5458)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

0 个答案:

没有答案