0

Hello every body i have been facing this problem from several days ,i have searched it every where but no result.i have clear and build project but still error " R cannot be resolved to a variable" and also i don't found R.java in project folders.

16
  • check if there is any error in xml resources.. or in any other place.. check the console for eror Commented May 27, 2013 at 5:50
  • stackoverflow.com/a/5780894/1838457 Commented May 27, 2013 at 5:50
  • i have checked there is nothing like that,becoz this error comes in all java files of my projects Commented May 27, 2013 at 5:51
  • there is an error like this:2013-05-27 11:02:14 - prefrences] Unable to resolve target 'android-10' [2013-05-27 11:02:14 - prefrences] Unable to resolve target 'android-10' [2013-05-27 11:02:14 - practice] Unable to resolve target 'android-13' [2013-05-27 11:02:14 - LearningInfoTech] Unable to resolve target 'android-16' Commented May 27, 2013 at 5:53
  • check package name in manifest file is same as in ur java file. Commented May 27, 2013 at 5:53

2 Answers 2

0

If you're running a 64-bit system, you need to install ia32-libs:

 sudo apt-get install ia32-libs
Sign up to request clarification or add additional context in comments.

Comments

0

R.java is java generated file .so you can't change details on R.java file. If your faceing problem for that. please check xml file for activity and add resouecres. R.java file will bepalced in "Gen " folder in your project files.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.