Reputation: 2499
After importing the project file disappeared R.java I tried Project - Clean, nothing ...
Upvotes: 0
Views: 1059
Reputation: 1
I lost the R files once importing the project. The reason was target SDK conflict (in .manifest file) between appcompat library and my project (my project had 19 whereas appcompat was 21).
And you should be good to go.
Upvotes: 0
Reputation: 901
Without Removing the error present in .xml file your R would not appear..Open your .xml file and see what the errors are..If they are false error then just format the .xml file [ctrl+shift+f this will format your file] and save it. Then Clean your project and buil it again..You will get your R.java back.. :-)
Upvotes: 2
Reputation: 3068
That implies errors on the layout or Manifest file , which are XML . Fix them first and clean the project
Upvotes: 2
Reputation: 1975
Clear all errors from the "res" folder and clean. It will generate your R.java file.
Upvotes: 2
Reputation: 20041
//once you import your project. your library jar files wont get import it seems.
try to put that libs in project from C:/user/musanin/ and D:/java/work_Max
Upvotes: 2
Reputation: 25143
Go to Project
and hit Clean
. This should, among others, regenerate your R.java file.
OR there might be any error in one of XML files.
Upvotes: 2
Reputation: 21191
Rectify the errors in the xml files and after that do
1) clean the project (or)
2) Restart the eclipse
Upvotes: 1
Reputation: 24476
Yes, if you've any errors on your *.xml
files. The R.java
file will not generate. Try to clear that errors first. After, clean your project and try to run.
Hope it helps you.
Upvotes: 7