Saturday, April 27, 2019

How To Start Android Emulator Without Starting Android Studio

This tutorial explains how to start android emulator without starting android studio. In general developer use the android emulator after starting android studio application but some situation developers don't need it android studio for mobile application development like react native. They only requires emulator to run their android application, So in that case this tutorial will be helpful for you. Here we will show you a quick way to start Emulator without running Android Studio. There are main two steps:
1. Know Android SDK location and Emulator name.
2. Write and save batch script.

Before using batch script commands, you need to create android emulator first and remember the AVD name that requires to kick off the batch script.


If you don’t know where Android SDK is installed don’t worry, I will show you how to know where it’s located. First of all, open Android Studio and open Tools->Android->SDK Manager. It will open up a dialog box like this:

How To Start Android Emulator Without Starting Android Studio

Here you can see the Android SDK location showing the path. Note it down. Next thing is to find out the exact name of Emulator you wish to run. Now open Tools->Android->AVD Manager.

How To Start Android Emulator Without Starting Android Studio

Note down the name of emulator name which you want to start. The main thing to know here is that you need to replace blank space with an underscore(_). So if I wish to use my emulator “Android 8.0”, I will use “Android_8.0” in the further process.

Batch Script To Run Android Emulator 


@echo off 
Rem Listing all the files in the directory Program files 
start /d "E:\androidSDKBuild\Android\Sdk\tools" emulator -avd Pixel_XL_API_25-_Android
echo "Done!"

Example : 
start /d "[provide sdk location]" emulator -avd [provide emulator avd name]

NOTE : copy paste the above code in text file and save it as .bat file extension.

This is all about starting android emulator using batch file script. Thank you for reading this article, and if you have any problem, have a another better useful solution about this article, please write message in the comment section.

No comments:

Post a Comment