Reputation: 171
Sometimes when I put images in my "drawable" folder, the image name is red. Doing right-click->Synchronize doesn't seem to help at all, and they crash my app when I try to use them in an activity. What does it mean and what should I do to fix this?
EDIT: It says "out of memory error." I think the image is too big, actually, not to do with teh red thing.
Upvotes: 1
Views: 2387
Reputation: 1
Sometimes When the file name starts with a Capital letter a red underline is shown.
Upvotes: 0
Reputation: 656
Means your project is connected to git
and you can push edits to make it green, or just ignore that!
and they crash my app when I try to use them in an activity.
May that happen because you name images in uppercase or their name contains special characters, it's must be in lowercase and no symbols.
EDIT:
It's crashes because it's a big images, just use small images because you deal with piece of limited resources, and it will be great if it a PNG
.
Upvotes: 3
Reputation: 48262
It means those files are untracked by git. You may want to add them to your git repo (this will make them green)
But.. they won't crash your application.. there's something else going on then
Upvotes: 9