


Now to access the emulators in the avd manager via the terminal, You can use the below code.Įnter fullscreen mode Exit fullscreen mode Keep in mind to do all these steps again when you buy a new system, or you will really have a tough time figuring out what is the problem. Now download android studio from the link below.Īfter installing the android SDK along with the android studio, we have to set its path to environment variables.ĭo the same as you did with Java jdk here as well.ĪNDROID_HOME -> C:\Users\YOUR_USERNAME\AppData\Local\Android\SdkĪfter doing that, you need to add three other SDK paths to the path variable like below.Ĭ:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk\emulatorĬ:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk\tools\binĬ:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk\platform-toolsĪfter doing all the above steps carefully in the right place, you can now now build android apps without any issues.

JAVA_HOME -> C:\Program Files\Java\jdk-12.0.1 In Environment variables set JAVA_HOME to the location of your jdk and not jre. Type the exact variable as I am typing here. Now go to environment variables in your system and do as below. I made a big mistake of not downloading and installing jdk and started to get all sorts of errors.Ĭarefully select the version and your OS specific ones and download and install them. Install Java's jre and jdk by downloading them from the given links below. This tutorial will almost solve all your installation problems.įorget everything you did before and start fresh! Now finally, I have configured my machine to compile react native apps and even java/kotlin apps perfectly and run it on an emulator. I bought a good laptop for college with education loan and I forgot to include all the environment variables and struggled a lot. So lets learn how to setup your system for mobile app development. If you hesitate to do it, you will waste a lot of precious time as I did while scrolling through stack overflow and other forums for hours. Before you start developing android apps or iOS apps with react native or with java/kotlin with android studio, you have to install a bunch of java stuff and set environment variables to path variables correctly.
