Why YouTube Player API does not work on Android 11?
问题 I tried the project explained on this YouTube video of how to play YouTube videos on Android apps: https://www.youtube.com/watch?v=Up9BjrIuoXY I tried to play YouTube videos with devices using Android 9 and Android 10 and the videos are played correctly, but in Android 11 devices I received this message inside the YouTube video window: "An error occurred while initializing the YouTube player". This is the code of MainActivity.java: package com.example.youtube; import android.os.Bundle; import