I imported the v7-appcompat support library according to the instructions on the Android developer site and ran into a missing R problem that many other users encountered. I read several similar questions posted here and tried what was suggested, but I still get the missing problem R. I re-imported the appcompat library, cleaned my project, restarted eclipse, changed my minimum and target SDK both in the manifest and in properties, and still has the same problem. Exact error regarding R: "R cannot be resolved by a variable."
In addition, the attrs xml file in the values folder has an error that also appeared when I added the library, but no one mentioned it. This is the code in the file:
<declare-styleable name="ButtonBarContainerTheme"> <attr name="buttonBarStyle" format="reference" /> <attr name="buttonBarButtonStyle" format="reference" /> </declare-styleable>
The Eclipse error gives me the error “Attribute” ButtonBarStyle already defined. ”Any help with this would be greatly appreciated!
android eclipse android-support-library appcompat
Cheesecoder
source share