Android 4.0 emulator always has a crashing Launcher?

AndroidAndroid Emulator

Android Problem Overview


I'm trying to make an Android 4.0 emulator. I've tried this process on a fairly fast computer in both Linux and Windows(Phenom II X6 w/ 8G of RAM) and every time I get "unfortunately, launcher has stopped" when I try to look at the menu of the launcher.

enter image description here

I have tried having the RAM size all the way up to 1024M, but nothing seems to help it. Is this just a borked emulator or what?

Android Solutions


Solution 1 - Android

I have experienced this same problem, several times. All I did was changed the RAM size to 512, and heap to 32. Rest all good...

@racs here suggested that changing the emulator skin in the AVD manager might also help. Give it a try...

Check if this helps.

Solution 2 - Android

I'm also facing the same issue after updating latest SDK. I come up with following solution after spending few hours,

The problem is "unfortunately, launcher has stopped". This happens because of the AVD skin path not properly assigned in AVD's config.ini

For Ex. My AVD name is AVD_4.0.3_WSVGA

before fix skin.path=AVD_4.0.3_WSVGA

so I changed skin path as follows, skin.path=platforms/android-15/skins/WSVGA

you can find config.ini

in linux(Ubuntu) /home/[username]/.android/avd/[your avd name]/config.ini

Solution 3 - Android

Try a different API level.

I got that idea here, and it worked a Nexus 7 AVD at API level 17 with an ARM CPU on OS X and it seems to be OK.

Solution 4 - Android

It's solved for me When I change VM heap from 16 to 32

Solution 5 - Android

Update your Android SDK Manager & try it again, check this links Adding SDK Components

Solution 6 - Android

Have you got "load from snapshot" on? if so you could try turning that off.

I also read here https://android.stackexchange.com/questions/23842/unfortunately-launcher-has-stopped-error-after-4-0-4-ota-upgrade were someone suggested clearing the launchers data in app settings.

Solution 7 - Android

chage confing file in --> .android->avd->youavdfoldername->config
open file and change
hw.dPad=yes
hw.mainKeys=yes

Solution 8 - Android

My solution was that you had to let the emulator boot up beforehand first.

To put it simply: the android emulator died from exhaustion when I tried to launch the app before the emulator had had time to boot up properly.

Solution 9 - Android

None of the answers listed here helped me. I eventually fixed the problem by going to the advanced settings for my Virtual Device in Android Virtual Device Manager. My SD card was set to 9MB and it's recommended to set this to at least 10MB. When I set this to a higher value it fixed the problem. enter image description here

Solution 10 - Android

I solved mine by increasing the heap size to 128.

Solution 11 - Android

I had the same issue and I had to do factory reset on my phone twice to get rid of this. But I then realized that the issue always happened when I was testing one particular app and thus the prob was narrowed down. Also I saw the error file and it showed OOM crash lines.

I then checked my last changes within that application and I found out to my surprise that the custom app logo which I was using replacing ic_launcher was huge in size due to which everytime I ran that application System launcher tried opening it and ended up with OOM.

I know, I know it sounds weird but trust me this was the issue. I reduced the size and tested again and things were working fine.

Note - I even tried testing on my friend's phone and crashed his launcher too. ;)

Solution 12 - Android

I had also same problem, I resolved,now you should reset your adb,

  1. open the emulator and Goto DDMS mode -->click next button of Screen Capture(Drop Down)-->Reset.adb. Or
  2. Goto Run-->Cmd-->goto Path(platforms and tool in Android sdk)-->adb kill-server 2.1 Goto Run-->Cmd-->goto Path(platforms and tool in Android sdk)-->adb start-server that's it,restart emulator am sure it will work..

Solution 13 - Android

I faced this problem before. The root cause of this issue is the RAM size. You cannot set the RAM size greater than 800MB. In my case, in set the RAM size to 700MB and it works properly. So try to change you RAM size.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEarlzView Question on Stackoverflow
Solution 1 - AndroidNikoView Answer on Stackoverflow
Solution 2 - AndroidJayabalView Answer on Stackoverflow
Solution 3 - AndroidcaseyboardmanView Answer on Stackoverflow
Solution 4 - AndroidPlugieView Answer on Stackoverflow
Solution 5 - AndroidMr. Sajid ShaikhView Answer on Stackoverflow
Solution 6 - AndroidThomasView Answer on Stackoverflow
Solution 7 - AndroidPankajAndroidView Answer on Stackoverflow
Solution 8 - AndroidAmici NybråtenView Answer on Stackoverflow
Solution 9 - AndroidmedinasodView Answer on Stackoverflow
Solution 10 - Androidmor222View Answer on Stackoverflow
Solution 11 - AndroidAtul O HolicView Answer on Stackoverflow
Solution 12 - AndroidVelaView Answer on Stackoverflow
Solution 13 - Androidlalala laView Answer on Stackoverflow