I imported Facebook SDK to Eclipse, along with some sample projects. I had red X on all of them, but I managed to fix. Now I still some red X's. When I look at java files of these projects, where there are errors (for example a line such as this: setContentView(R.layout.main);
I see the following error:
R cannot be resolved to a variable.
When I look at the main.xml layout file, I see an error like that:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'confirm_logout' in package
'com.facebook.samples.hellofacebook'
- error: No resource identifier found for attribute 'fetch_user_info' in package
'com.facebook.samples.hellofacebook'
I tried to go to Android tools -> Fix project properties, but that didn't help. What is the problem and how can it be fixed?