$ choco install -y nodejs-lts openjdk11
If you have already installed Node on your system, make sure it is Node 12 or newer. If you already have a JDK on your system, make sure it is version 11 or newer.
You can find additional installation options on Node's Downloads page.
If you're using the latest version of Java Development Kit, you'll need to change the Gradle version of your project so it can recognize the JDK. You can do that by going to{project root folder}\android\gradle\wrapper\gradle-wrapper.properties
and changing the distributionUrl value to upgrade the Gradle version. You can check out here the lastest releases of Gradle.