CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
07/22/14 06:47 PM (10 years ago)

Eclipse drawable pics

In eclipse when I put a image in the drawables folder such as "new_Pic-1.png", it throws an error saying it can to only use capital or lowercase letter,numbers,dashes and underscores. Im wondering why the default bt images dont throw these errors.I can only use all lowercase letters to get it to not throw an error(even when doing a project clean,etc). Does anyone know why it does this? Not a big deal, Im just curious...
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/22/14 06:53 PM (10 years ago)
The - needs to stay _ if you get my meaning LA
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/22/14 07:00 PM (10 years ago)
If you mean like this "cool_image.png", Ive tried that but still get the same error. I never really use those extra characters, at first I tried making my names like this "coolPic.png", then I noticed the error, then I tried all of the suggestions but only lowercase letters worked. Some others mentioned it as well that they got the error. I wonder if we messed with settings somewhere, somehow. It just bugs me that the bt pics can do that and my images cant lol.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/22/14 07:04 PM (10 years ago)
Yeah that's strange. I also try to stay away from numbers unless I spell them out. Android/Eclispe can be picky and don't like the camel hump either. Did you just try like myimage with no characters etc? LA
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/22/14 07:08 PM (10 years ago)
Yes using all lowercase letters is the only way I can get them to work
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
07/22/14 07:16 PM (10 years ago)
Strange. I just started a new project and haven't had that problem. Try deleting the project? And try again
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/22/14 09:02 PM (10 years ago)
Thanks I tried again and got the same thing. I noticed that the bt images are lowercase.Maybe I just need to restart eclipse. I also found this "article" on a pretty informative blog: http://code2care.org/pages/android-:-r-cannot-be-resolved-to-a-variable-error-solutions/ Ill post back if restart works or not. thanks again!
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
07/22/14 11:57 PM (10 years ago)
Ive had issue's in the past with the "_" used in images and ended up having to remove them completely - using only lower case letters!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/23/14 08:18 AM (10 years ago)
I restarted my computer and it did the trick!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.