endflow.net blog

/* programming and programming */

Android: Eclipse crashes when opening Resource Chooser dialog on Mac OS X

with 2 comments

/* .DS_Store file in “res” directory */

Yesterday, I wanted to see the list of internal icon resources of Android SDK, so I put a dummy ImageView widget to a screen in Graphical Layout and it opens the dialog named “Resource Chooser”. But it causes crash and freeze of Eclipse IDE suddenly. Why? When I previously used Resource Chooser dialog, it works perfect without any error.

In short: The cause is .DS_Store file in “res” directory (incl. all sub directories)

ADT plugin tries to read something from .DS_Store file in “res” directory (especially “drawable” directory) and causes crash. Okay, so I just remove it using Finder… WAIT! If you remove .DS_Store file using Finder, Finder will generate .DS_Store file again. Really scare infinite-loop.

Use Terminal. Remove them using “rm” command from Terminal application. While you’re using Resource Chooser dialog, don’t touch the Finder app which shows “res” directory or its children.

Written by kuy

October 2nd, 2011 at 1:30 pm

Posted in Uncategorized

Tagged with , ,

2 Responses to 'Android: Eclipse crashes when opening Resource Chooser dialog on Mac OS X'

Subscribe to comments with RSS or TrackBack to 'Android: Eclipse crashes when opening Resource Chooser dialog on Mac OS X'.

  1. I had the same issue and now I know why it happened. Thank you.

    Anon

    14 Oct 11 at 04:03

  2. You can disable this folder in the preferences of spotlight

    then you don´t need remove it

    Luisso

    12 Dec 11 at 08:43

Leave a Reply