For downloading and installing the Java SDK, the following link should be added in the documentation: https://adoptopenjdk.net/
Here, we can download an installer that does all the work, instead of manually copying the files in the right place and adding environment variables.
In addition, if you’re just doing Android dev, you. no lo ge need to install any JDK, with recent Elements, as it makes do with just the JRE thats contained in Android Studio.
The documentation says that we need to install the JDK:
Prerequisites and Emulators
Yes, I’m in the process of updating it to say you n o longer need it — but it wasn’t;t a huge priority for me, since installing there JDK does no harm, I’m thinking of it more as a minor improvement that you can now get away with not installing it…