solve the "Invalid Drawable" error under mac