I edited a small amount of my xml code
(tried to add an android:src"@drawable/" but it didn't seem to like it so I deleted it after)
and my java code (added Troop1P1.setVisibility(View.VISIBLE); to the end of an OnClickListener,
and again deleted afterwards [I had already used findViewByID for Troop1P1]).
However, my whole code has now stopped working, with every "R" in (R.id.) being highlighted, with the text "Cannot resolve symbol "R"" when hovered over.
In addition, when I run the code I get the following error:
error: Error: No resource found that matches the given name (at 'layout_above' with value '@id/btnTroop1P2').
However, I've checked and I'm fairly sure I've correctly id'd btnTroop1P2 using android:id="@+id/btnTroop1P2", so I can't find any problems there.
I'd really appreciate any help, I just want to be able to run my project again!
are you using Eclipse? .if yes go to Project -> Clean... -> Tick your project name -> OK. Give that a try. I always get similar problems and this solves it for me anyway.