java - Android: Resources don't contain package for resource number 0x -


i'm writing on custom view in android. uses png's, provided resources in drawable-folder (i put in of drawable folders now, make sure) of project.

unfortunately, when startup app, force close , last thing log says is: "warn/resourcetype(261): resources don't contain package resource number 0x7f020002" (the hex-number first icon intend load).

now curious thing: graphical layout-editor of eclipse adt plugin has no problems whatsoever loading displaying icons in design view. it's when start actual app (emulator or actual cellphone), android can't find resources.

i tried cleaning project , refreshing file structure. didn't quite work out -.-

edit: realized can't load string resource. problem seems exist resources. have something, before resources become available?

hope can me,

thx in advance

some times when adding resource files res dir, generated r class gets out of sync assets. if compiling on command line ant, try navigating build scripts , doing clean build:

ant clean 

i don't know eclipse, there might way tell eclipse refresh generated files.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -