Skip to content

“an error occurred while initializing the youtube player” on Android

42

This issues coming in Android 11 and above version, due to Package visibility filtering

For more info : https://developer.android.com/training/package-visibility

Add the below lines of code into your AndroidManifest.xml file

<queries>
   <intent>
      <action android:name="com.google.android.youtube.api.service.START" />
   </intent>
</queries>

Leave a Reply

Your email address will not be published. Required fields are marked *