Reputation: 989
Help, my project's completely broke!!!
I'm coding an Android app in Eclipse. I just made a change to the Strings file, replacing an existing named string ("button_text") to two strings ("button_text1", "button_text2"). The .xml editor would not recognise the change to the strings file (yes, I did save it ;)), only presenting "button_text". I tried "clean project" as that's helped fix images not updating, which did not work. I then tried Android tools > fix Project Properties. I can now change the button label to the new "button_text1" but the project won't build. Resources are not recognised. eg.
setContentView(R.layout.layout_tables);
"R" is unrecognised
My entire project is broken. What do I need to do to fix it? I'm in the latest Eclipse as updated yesterday.
Upvotes: 0
Views: 1154
Reputation: 6058
If you have just updated to Android SDK rev. 22, you may be experiencing the same problem asked here. If that's the case:
After updating to SDK Tools to rev. 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools.
After installing this, clean your projects and rebuild.
Upvotes: 4