I honestly never had any problems installing or using it...
Only had problems when a extension wasn't compatible.
If you just install Android Studio, API 30 or 31, let it update whatever it's pre-selected and accept the licenses it just just works.
I've seen it failing If people install unnecessary stuff, like NDK.
I just use Android Studio and its built-in JDK.