Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I've updated android studio from 3.0 to 3.0.1 but when I launch Emulator it didn't get launched and gives message in event log:

Emulator: Process finished with exit code 0 
like image 821
Wahdat Jan Avatar asked Dec 10 '17 14:12

Wahdat Jan


People also ask

How solve emulator process was killed?

This issue happens when you have two Android SDK installations on your machine and the environment variable "ANDROID_HOME" points to the wrong location. To fix it go to Android Studio settings, find the proper Android SDK location, update the environment variable and restart Android Studio / your PC.


1 Answers

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
like image 198
stefan Avatar answered Oct 11 '22 12:10

stefan