I recently got back into doing some android development. Its been an adjustment period to say the least. One of those adjustments has been the slight differences of working on a Mac. I came across a bug today, that baffled me for a while and required some of my best “google-fu” to figure out.
I ended up at this site: http://code.google.com/p/android/issues/detail?id=38371
The problem is essentially the AVD manager can’t re-open a virtual device that was on a second monitor on a Mac. The work around is to edit the following file
~/.android/avd/.avd/emulator-user.ini
and change the
window.x=0
That’s it. It’s an ugly hack, but it works for now. According to the bug report it should be fixed with the next release of the android developer tools. ( http://developer.android.com )
September 29, 2014 at 05:47
Thanks ! you saved my day
August 12, 2014 at 16:43
Thanks for this – the emulator was still crashing for me – I have TWO secondary monitors, and the Y position was a negative number. Was still crashing after setting window.x = 0.
So, I also had to set window.y = 0 and everything is fine again.
May 1, 2014 at 13:17
Thank you!! I guess there are still some issues to work out with doing Android development on a Mac…
April 30, 2014 at 11:12
That did the trick – thanks so much buddy!
February 24, 2014 at 18:00
Thank you! It perfectly works for me
February 24, 2014 at 02:36
Worked like a charm, thanks for posting.
February 16, 2014 at 12:14
Thanks! Over a year later and it still doesn’t look like it’s fixed. But your solution worked!
February 14, 2014 at 07:53
I didn’t edit the .ini file but this post lead me to believe that I can just unplug my second monitor…it worked!
Thank you very much!
February 1, 2014 at 05:56
Thanks – great help!
January 27, 2014 at 19:38
Thanks for this. Was easy to find so I didn’t bang my head against it for more than a couple of minutes.
January 14, 2014 at 16:39
Thank You!!!
December 31, 2013 at 14:22
Thank your fix worded! This is typical Google ignoring issues like this for months.
December 17, 2013 at 14:32
Thanks for the post.
Just an update on this,
It still has not been fixed.
The structure has changed and all the emulator-user.ini is now within the .avd file in the same directory you described.
Thanks for the time saver!
December 10, 2013 at 10:33
Very unexpected bug! Thank you for sharing…
November 11, 2013 at 15:11
Thanks so much. Very helpful after a monitor quit on me.
September 26, 2013 at 18:08
Thanks. Working.
July 23, 2013 at 09:54
Great! Had the same problem. Now it works fine
June 14, 2013 at 08:32
Thank you! … I’ve been struggling with this … it works !