you may closed the auto complime of the eclipse,
you can find it at  project menu of eclipse,
good luck






在2009-06-09,arnouf <[email protected]> 写道:
>
>Really strange, I think my string.xml is corrupt because:
>- I changed the key and my Toast is still crashing
>- I tried to display it in a simple textview and the value of my label
>is @21346627
>
>Go: redo my file :)
>
>On Jun 8, 7:14?pm, Mark Murphy <[email protected]> wrote:
>> arnouf wrote:
>> > Hi all,
>>
>> > at compilation all is OK: my project is compiling correctly and it
>> > installed correctly too.
>>
>> > In my programme I've something like that
>> > Toast.makeText(this, this.getResources().getString(R.string.value),
>> > Toast.LENGTH_SHORT).show();
>>
>> > And my app crash with following error
>> > 06-08 16:39:58.521: ERROR/AndroidRuntime(873):
>> > android.content.res.Resources$NotFoundException: String resource ID
>> > #0x7f04000d
>> > 06-08 16:39:58.521: ERROR/AndroidRuntime(873): ? ? at
>> > android.content.res.Resources.getText(Resources.java:155)
>> > 06-08 16:39:58.521: ERROR/AndroidRuntime(873): ? ? at
>> > android.content.res.Resources.getString(Resources.java:208)
>>
>> > My R.java file contains this key
>> > public static final int value=0x7f04000d;
>>
>> > So why the resource isn't found at execution?
>>
>> That error means R.java has the ID but the corresponding string is not
>> found.
>>
>> Try deleting your project's gen/ directory (or whatever the equivalent
>> operation is in Eclipse), or at least R.java, rebuild, and see if the
>> problem clears up.
>>
>> It is also possible there is something special about the ID value of
>> "value". You might try renaming it to something more unusual and see if
>> that helps.
>>
>> --
>> Mark Murphy (a Commons 
>> Guy)http://commonsware.com|http://twitter.com/commonsguy
>>
>> Android Development Wiki:http://wiki.andmob.org
>>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to