Question Detail

open a emulator without using android studio 


Thread Reply

Hemant Haritash

- 1 years 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 

Hemant Sharma

- 7 months ago

If you have installed Flutter SDK and Set it in your System environment Variable Path.

Just open your  CMD or Terminal Windows/Mac

run Below 

flutter emulators

it will show you all your emulators if you are using Windows OS, if you are using MacOs then you will be able to see Emulators and Simulators both for debug Mobile Application on Virtual device for android and Ios.

2 available emulators:

Pixel_2_API_27      • pixel_2       • Google • Pixel 2 API 27
apple_ios_simulator • iOS Simulator • Apple

above are the available emulators and simulators 

Now you have select anyone visible to you by execute below command

flutter emulators --launch Pixel_2_API_27

Done!

Hemant Sharma

- 7 months ago

If you have installed Flutter SDK and Set it in your System environment Variable Path.

Just open your  CMD or Terminal Windows/Mac

run Below 

flutter emulators

it will show you all your emulators if you are using Windows OS, if you are using MacOs then you will be able to see Emulators and Simulators both for debug Mobile Application on Virtual device for android and Ios.

2 available emulators:

Pixel_2_API_27      • pixel_2       • Google • Pixel 2 API 27
apple_ios_simulator • iOS Simulator • Apple

above are the available emulators and simulators 

Now you have select anyone visible to you by execute below command

flutter emulators --launch Pixel_2_API_27

Done!