Note that installing Android Studio doesn’t automatically configure the built-in JDK command line tools . This matters if you want to use the Android SDK command line tools.
Read moreHow do I download Java JDK?
Installing Java SE Development Kit on Windows
Read more