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

Advertisement

42

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

Advertisement

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>

Advertisement

Leave a Comment

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

Scroll to Top