Help with Setting Up Android SDK and NDK

I want to make a handheld AR app and I need to set up my PC for Android development.
I have followed the steps as in the documentation:
How to Set Up Android SDK and NDK For Your Unreal Engine Development Environment | Unreal Engine 5.1 Documentation
but when I run the SetupAndroid.bat to install the NDK this is what happens:

i tried everything i could think of, i downloaded the latest java version and so on.
Please help, I have no idea how to solve this. :exploding_head:

As far as I understand, you already have a version more proficient than what the .bat file wants to create for you. Have you installed and opened Android Studio?

Thank you for your answer.
Yes, I have installed and opened (up to the “welcome” window) Android Studio.