0

When I import some source code, eclipse throws me many errors about R-file for example :

1)R.string.pref_default_time_from_now_key;

2)R.xml.task_preferences;

3)R.id.body;

4)R.id.reminder_time;

5)R.id.reminder_date;

Eclipse asks me to import R file but I do not need that, how can I fix this problem?

3
  • check if you have any errors in your resource files. fix it. clean and build Commented Aug 4, 2013 at 8:14
  • There are no errors in resource file, when I import R-file it doesn't read id's and xml files. Commented Aug 4, 2013 at 8:17
  • @BeginnerAndroid check if you have R.java generated. If not you will probably have errors in your resource files. Commented Aug 4, 2013 at 8:19

1 Answer 1

0
  • Make sure you do not import another R.java from another class.
  • Make sure all your resources are named correctly (small letters, digits and underscores only)
  • Try cleaning the project
Sign up to request clarification or add additional context in comments.

Comments