Android Studio Emulator and "Process finished with exit code 0"

Solution 1:

You need to check:

  • Your size on disk is not full - this's often happen due to creation of some virtual devices that are unused

  • The RAM size of emulator is not minimum as your requirements

One more thing that I personally use: Use Pen Drive as a RAM


Updated:

Use HDD as RAM

  • Right Click on “This PC or My Computer” and Select Properties.

  • Now Click on “Advance System Settings”.

  • Now in “System Properties” you have to select “Advanced” tab.

  • Now click on “Settings” Under “Performance”.

  • Now in “Performance Option” again you have to select “Advanced” tab.

  • Now click on “change“ under “Virtual Memory”.

  • Un-check “Automatically manage paging file size of all drivers” and select “Custom size”.

  • In Custom Size enter the amount of data According to “Space available” which is written there.

  • Click on “set” button and Click on OK.

  • Now it will ask you to restart your Computer or Laptop.


Another work around steps (tested) :

  1. Restart your Android Studio
  2. Create new device in your AVD Manager
  3. Increase the RAM size of the Emulator

Solution 2:

I restarted Android Studio and create a new device in AVD MANAGER then I have increased the RAM size of emulator and it works nicely.

UPDATED Sometimes it happens when you close emulator during building the App in to emulator.

Solution 3:

I also faced the same error. After a few hours I figured it out.

I hope it helps you :

Go to Tools ==> SDK Menager ==>Android SDK

(Appearange&Behavior=>System settings=>Android SDK)==>SDK Tools==>Intel x86 Emulator Accelerator(install this).

It will solve your problem.I hope it helps.

You can look at pictures which you must install

Solution 4:

I had this problem and it took me nearly 2 days to resolve...

I had moved my SDK location, due to the system drive being full, and it seems that someone, somewhere at Android Studio central has hard-coded the path to the HaxM driver installer. As my HamX driver was out of date, the emulator wouldn't start.

Solution: navigate to [your sdk location]\extras\intel\Hardware_Accelerated_Execution_Manager and run the intelhaxm-android.exe installer to update yourself to the latest driver.