YouTubeStandalonePlayerActivity一启动就会崩溃

时间:2013-03-30 05:56:31

标签: android youtube-api

在我的活动中,我尝试发布特定视频:

Intent intent = YouTubeStandalonePlayer.createVideoIntent(this, key, videoId);
startActivity(intent);

视频ID为LT5YThKAsic,但在独立播放器活动出现后(我可以在那里简单地看到我的视频),我得到一个强制关闭,其中包含以下堆栈跟踪,我认为不是一切都很有帮助。

FATAL EXCEPTION: main
java.lang.IllegalArgumentException
    at com.google.android.youtube.core.utils.s.a(SourceFile:112)
    at com.google.android.youtube.core.async.GDataRequestFactory.a(SourceFile:395)
    at com.google.android.youtube.api.ab.a(SourceFile:141)
    at com.google.android.youtube.core.async.a.d.a(SourceFile:101)
    at com.google.android.youtube.core.async.a.d.a(SourceFile:73)
    at com.google.android.youtube.core.player.Director.v(SourceFile:530)
    at com.google.android.youtube.core.player.Director.a(SourceFile:398)
    at com.google.android.youtube.core.player.Director.a(SourceFile:412)
    at com.google.android.youtube.core.player.Director.a(SourceFile:425)
    at com.google.android.youtube.api.ApiPlayer.a(SourceFile:195)
    at com.google.android.youtube.api.service.a.d.run(SourceFile:167)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:132)
    at android.app.ActivityThread.main(ActivityThread.java:4134)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:491)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
    at dalvik.system.NativeStart.main(Native Method)
Force finishing activity com.google.android.youtube/.api.StandalonePlayerActivity

知道它崩溃的原因吗?

0 个答案:

没有答案