1

I am getting this error "Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API." I used youtubePlayer.addFullscreenControlFlag(YouTubePlayer.FULLSCREEN_FLAG_CONTROL_SYSTEM_UI);

but still getting same error also i go through Unable to play some Youtube videos using YouTube Android Player API

But still getting error.

Community
  • 1
  • 1
Umer
  • 1,566
  • 2
  • 20
  • 31

1 Answers1

1

I faced this bug because i am using Fragment inside Youtube Fragment. i removed the inner fragment my problem is solved and now Youtube Videos are working properly.

Umer
  • 1,566
  • 2
  • 20
  • 31