The R.java file is generated automatically based on the content of the
res/ folder.

Are you using Ant or Eclipse?
If Ant, is there any error output when running it, if Eclipse, is
there any errors in the "Problems" view?

Xav

On Sun, Jan 4, 2009 at 2:56 PM, novice <tjackson.1...@gmail.com> wrote:
>
> Hello,
>
> I accidently "deleted" my R.java file attached to my "project" - but
> it was re-attached auto-magically. But now when I try to assign
> drawables it says its it cannot be resolved.
>
> for example:
>
>            cheese_png = context.getResources().getDrawable
> (R.drawable.cheese);
>            cheese_png.setBounds(0, 0, cell_x , cell_y);
>
> R.drawable.cheese is now "unresolved".
>
> First guess is that I think I ruined the ability to add outside PNG
> files. It will not recognize any user - made PNG files I made placed
> in the res/drawable folder.
>
> Anyone have ideas on how I can get things back to normal?
>
> PS - I made a completely new android app and now I still cant make any
> user-made png files.. is this R.java file permanently damaged?
>
> >
>

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

Reply via email to