views:

16

answers:

0

Hi,

Firstly, I am new to android development. My app has been working fine with a number of different activities up until today.

I have been trying to add a new <Button /> element to one of my layout xml files. However, if I give it a new id (e.g., android:id="@+id/button_unique") my app crashes on load, presumably as the resources are being loaded. If I change the id to an existing id (or remove android:id attribute completely) then the app loads fine.

The new resource id does appear in R.java. However, I can see a No package identifier when getting value for resource number 0x7f060000 error in the logcat console. I'm not sure if this is related?

Perhaps i'm making a silly mistake somewhere, but if anybody could help me get to the bottom of this it would be much appreciated.

Thanks