大家好,
我試圖在我的Android應用程序中播放youtube視頻,通過集成youtube sdk和從谷歌控制檯生成api鍵之後,當我嘗試運行我的應用程序運行應用程序時我在控制檯中收到此錯誤,任何人都可以幫助我解決此問題。無法在我的Android應用程序中播放YouTube視頻
11-19 19:41:53.264 1173-1173/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver [email protected] that was originally registered here. Are you missing a call to unregisterReceiver()?
11-19 19:41:53.264 1173-1173/? E/ActivityThread: android.app.IntentReceiverLeaked: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver [email protected] that was originally registered here. Are you missing a call to unregisterReceiver()?
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:805)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1720)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1700)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1694)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:453)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at lwz.a(SourceFile:1238)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at lwv.a(SourceFile:671)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at aha.a(SourceFile:267)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at aha.b(SourceFile:287)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at aps.run(SourceFile:209)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.os.Handler.handleCallback(Handler.java:730)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.os.Handler.dispatchMessage(Handler.java:92)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.os.Looper.loop(Looper.java:176)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at android.app.ActivityThread.main(ActivityThread.java:5419)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at java.lang.reflect.Method.invokeNative(Native Method)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at java.lang.reflect.Method.invoke(Method.java:525)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
11-19 19:41:53.264 1173-1173/? E/ActivityThread: at dalvik.system.NativeStart.main(Native Method)
Thanks in advance
你錯過了unregisterReceiver。所有這些,我們可以通過錯誤建議你 – curiousMind