Resource missing error, but its there.

by Brill Pappin » Sat, 22 Jan 2011 15:51:30 GMT

Sponsored Links
 For some reason, I'm getting this:

01-22 07:46:15.226: ERROR/AndroidRuntime(8345): Caused by: 
android.content.res.Resources$NotFoundException: String resource ID 

But the resource *is* there and the R class has the generated ID.

Anyone have any idea how i can resolve this?
(yes, I've tried a clean build)

- Brill Pappin


Re: Resource missing error, but its there.

by Dianne Hackborn » Sun, 23 Jan 2011 03:52:33 GMT

 Do you have a value defined for whatever config you are in?  If you don't
have a default value set, this can cause the lookup to fail.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Sponsored Links

Re: Resource missing error, but its there.

by Brill Pappin » Sun, 23 Jan 2011 06:16:52 GMT

 I delete this post a few minites after I posted it :)

Turns out I was mistakenly asking the system resources to get the local 
string resource... which of course wont work very well :)

One of those little lines of code you ignore that causes you to bang your 
head agains the keyboard... and as soon as you stop looking at it, its 
obvious :)

- Brill Pappin


Other Threads

1. 1.5 and bluetooth call button


Does the 1.5 update fix/enable using bluetooth headsets' call button -
(eg. hold the button down to start voice dialer, press to pick up a
call, press to end call)?
This doesn't seem to work in the current version of android.



2. Can't upload apps in android market!!!

When I uploaded an apk of new application, I was
told that "Market requires the minSdkVersion to be set in

I already set this attribute in AndroidManifest.xml. What's wrong??

<manifest xmlns:android=""
<uses-sdk android:minSdkVersion="2"></uses-sdk>

Anyone have solution for this issure?


3. SurfaveFlinger and permitions

4. How to use shell command "rild"?

5. custom layou with special Path on HorizontalScrollView

6. setNetworkPreference problem...

7. Community contributions to design (WAS: Android v. 1.5 = FAIL #2: Directly Manipulating Settings)