Android device launch failed with unknown error

as you see above
those are what the docs tell you to install
jre is currently 17, but you need version 8 or gradle will fail
jdk is at 20 something
but you need jdk 8 from the archives
android studio 2022 is latest
but you will not be able to build unless you download version 4 from the archives
those are what where used when they built the tools.