上播放YouTube播放器API的Andr​​oid崩溃在某些设备上 [英] Youtube Player API android crashes on playback on some devices

查看:230
本文介绍了上播放YouTube播放器API的Andr​​oid崩溃在某些设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是堆栈跟踪我从设备(索尼Xperia米罗)得到的,当我尝试使用播放器API来播放视频。

这是错误的堆栈跟踪。任何帮助是值得欢迎的。
在code似乎像Galaxy Nexus的,的Nexus 7等。

其他一些设备工作正常

 致命异常:主要
显示java.lang.NullPointerException
在com.google.android.apps.youtube.core.player.AdStatsMacros.a(的SourceFile:185)
在com.google.android.apps.youtube.core.client.DefaultAdStatsClient.a(的SourceFile:481)
在com.google.android.apps.youtube.core.client.DefaultAdStatsClient.a(的SourceFile:467)
在com.google.android.apps.youtube.core.client.DefaultAdStatsClient.a(的SourceFile:461)
在com.google.android.apps.youtube.core.client.DefaultAdStatsClient.h(的SourceFile:320)
在com.google.android.apps.youtube.core.player.StatsTracker.g(的SourceFile:409)
在com.google.android.apps.youtube.core.player.an.handleMessage(的SourceFile:1615)
在android.os.Handler.dispatchMessage(Handler.java:95)
在android.os.Looper.loop(Looper.java:137)
在android.app.ActivityThread.main(ActivityThread.java:4424)
在java.lang.reflect.Method.invokeNative(本机方法)
在java.lang.reflect.Method.invoke(Method.java:511)
在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:817)
在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
在dalvik.system.NativeStart.main(本机方法)


解决方案

这是与本地YouTube应用的问题。据acknowlegded和固定,在后续版本的YouTube应用由谷歌发布。

链接这里是相同的:
的https://$c$c.google.com / p / gdata的-问题/问题/细节?ID = 5431

This is the stack trace I get from the device (Sony Xperia Miro), when I try to play a video using the Player API.

This is the stack trace for the error. Any assistance is welcome. The code seems to work fine on some other devices like Galaxy Nexus, Nexus 7 etc.

FATAL EXCEPTION: main
java.lang.NullPointerException
at com.google.android.apps.youtube.core.player.AdStatsMacros.a(SourceFile:185)
at com.google.android.apps.youtube.core.client.DefaultAdStatsClient.a(SourceFile:481)
at com.google.android.apps.youtube.core.client.DefaultAdStatsClient.a(SourceFile:467)
at com.google.android.apps.youtube.core.client.DefaultAdStatsClient.a(SourceFile:461)
at com.google.android.apps.youtube.core.client.DefaultAdStatsClient.h(SourceFile:320)
at com.google.android.apps.youtube.core.player.StatsTracker.g(SourceFile:409)
at com.google.android.apps.youtube.core.player.an.handleMessage(SourceFile:1615)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
at dalvik.system.NativeStart.main(Native Method)

解决方案

This was an issue with the native Youtube App. It has been acknowlegded and fixed, in subsequent releases to the Youtube App released by google.

Link here for the same: https://code.google.com/p/gdata-issues/issues/detail?id=5431

这篇关于上播放YouTube播放器API的Andr​​oid崩溃在某些设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆