Hi I am trying to build the sample package v4 in the Androidsdk\extras\android\support\v4\samples/. I also added the support v4 package to the build list.
However when I do this Eclipse reports that the project is giving loads of compile errors eg:
- setContentView(R.layout.accessibility_delegate); reports an error saying R cannot be resolved to a variable
- its unable to find: R.layout.accessibility_manager); when its in the layout folder.
Some help on this would be really well received.
Either your resource directory have not compiled properly, or you need to import
R. You can search stackoverflow for possible reasons and solutions.Possibly above solution, would also fix this.
If you are getting problem, in resolving .xml error while compiling
v4 samples, then try to set Android target of your project to some higher API level say API 13 (as some of the resources e.g theme were introduced in later versions). And do not worry as these samples still would run on older platforms, asminSdkVersionhas been set so.Hope it helps or you can elaborate your problem.