Search code examples
androidreact-nativecmdandroid-emulatoradb

How to cold boot emulator using command line(CMD)


I am trying to open emulator without opening android studio every time while developing react-native. Emulator can be opened using this lines of code.

cd C:\Users\<your_user_name>\AppData\Local\Android\Sdk\emulator
emulator -list-avds
emulator @<your_adb_name>

But now I want to cold-boot emulator some times to resolve emulator not responding issue using cmd. Any idea to solve that?

Thanks in advance.


Solution

  • I am able to solve my this problem using -no-snapshot-load with emulator @<your_adb_name>

    cd C:\Users\<your_user_name>\AppData\Local\Android\Sdk\emulator
    emulator -list-avds
    emulator @<your_adb_name> -no-snapshot-load