I would like to add more information, but I can't comment since I don't have 50 reputation. So I'll share how I'm facing the issue after upgrading to Android Studio Ladybug.
I get this error:
* What went wrong:
Execution failed for task ':video_player_android:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Running ./gradlew --version inside the android folder gives this output:
------------------------------------------------------------
Gradle 7.4
------------------------------------------------------------
Build time: 2022-02-08 09:58:38 UTC
Revision: f0d9291c04b90b59445041eaa75b2ee744162586
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 11.0.25 (Homebrew 11.0.25+0)
OS: Mac OS X 15.0.1 aarch64
I also tried the Android Gradle plugin Upgrade Assistant but it won't even open.
I'll update if I have more information.