Android Youtube Player Api - ERROR_CONNECTING_TO_SERVICE

后端 未结 1 588
忘了有多久
忘了有多久 2020-12-21 16:28

I\'m trying to use the new api youtube. I followed the examples provided, but I get the error: ERROR_CONNECTING_TO_SERVICE

The \"API key\" that I\'m using is correct

相关标签:
1条回答
  • 2020-12-21 16:54

    Are you trying to start the 'Track' Activity as part of an ActivityGroup/TabActivity inside a TabHost? If so, unfortunately the YouTubePlayerView or YouTubePlayerFragment can't be initialized inside an ActivityGroup. Since the ActivityGroup is now deprecated, the only suggestion I can give is to use Fragments instead.

    0 讨论(0)
提交回复
热议问题