Open Isaackingston opened 2 years ago
This happens because of the privacy change in Android 11. The package visibility in Android 11 has to be explicitly requested. More information can be found in this stackoverflow link https://developer.android.com/about/versions/11/privacy/package-visibility
You can solve this by adding the following code to you AndroidManifest.xml inside the manifest element but outside the application element.
<manifest
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
</application>
<queries>
<intent>
<action android:name="com.google.android.youtube.api.service.START"/>
</intent>
</queries>
</manifest>
When trying to start youtube player activity the an alert with the title "Get YouTube app" and the message as "This app won't run without the YouTube App, which is missing from your device". The alert looks like the one below.