上播放YouTube播放器API的Andr​​oid崩溃在某些设备上播放器、设备、在某些、YouTube

2023-09-06 09:31:13 作者:畅聊往事

这是堆栈跟踪我从设备(索尼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

 
精彩推荐
图片推荐