Question Detail

open a emulator without using android studio 


Thread Reply

VKY

- 5 months ago

You have set you Environment Variable 

System Variables:

ANDROID_HOME 
C:\Users\VBage\AppData\Local\Android\android-sdk

ANDROID_SDK_HOME 
C:\Users\VBage\AppData\Local\Android\android-sdk

JAVA_HOME 
C:\Program Files\Java\jdk1.8.0_144

PATH 
C:\Users\VBage\AppData\Local\Android\android-sdk\tools 
C:\Users\VBage\AppData\Local\Android\android-sdk\platform-tools

 

Now to confirm that it works, open cmd and type in android, the Android SDK Manager should open up.

NOTE: I suggest using the default command prompt over a third party one such as Git Bash. With cmd, when you run commands such as npm install, you actually get a loading bar where as in Git bash, you don't get one. Some commands that work properly in cmd such as android will not be recognized by Git bash.

  1. Now in the command prompt, cd to the Desktop.

  2. Run these commands: 
    • npm install -g create-react-native-app 
    • create-react-native-app APPFOLDER_NAME
    • cd APPFOLDER_NAME/ 
    • npm start