简体   繁体   中英

Android R.java missing

I am working with android.I am using eclipse juno. For the last few days I had a problem of missing R.java file from my project. I had searched for solutions but those are like clean the project and rebuild,fix project properties,restart eclipse etc. I tried all these but still I can't solve my problem. What are the reason for missing this file? How can I resolve?? please help me I am new to android thanks in advance.

I had facing same problem R.java file automaticaly Remove from the folder. But you can try this Your problem might solve. I am Not Sure this also working for you but that worked for me.

right click on project > properties > Resources > Android > chage project build target to higher version.

try this

1.Check errors in the manifest file...

2.check the name of files in drawable that which should not start with the digits like 123.png

  1. avoid spaceing in the string.xml <string name="appname">AppName</string> correct <string name="app name">AppName</string> wrong one

I had fixed my problem,by this solution..hope it will help:

check throughly all of the .xml files(in layout,in menu,in values .in drawable folders etc.),one of them may have some error,as this is the big reason to remove r.java file.If any xml file may have any error fix that error, then build your project again.. R.java again visible in "gen" folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM