Duplicated ID in Fragment YouTubePlayerSupportFragment

前端 未结 1 396
面向向阳花
面向向阳花 2021-01-15 18:18

I am trying use API Youtube to execute play video, but I get a error in XML Duplicated ID 0x7f080039. Any idea how to solve this problem?

My Fragment exends YouTube

相关标签:
1条回答
  • 2021-01-15 18:39

    this error occurs on Nested Fragments which has been defined in layout , try remove your Fragment from Xml Layout and replace it with a FrameLayout as a PlaceHolder then instantiate your Fragment dynamically in code.

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