endflow.net blog

/* programming and programming */

Archive for October, 2011

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 , ,