r.java file - Error in android project -

as can see,all android projects in workspace showing cross sign.the r.java file not generated.it fine last night , in morning cleaned workspace errors have showed up.i tried everything,cleaning again,restarting eclipse.but no luck.please help.
this sdk:

i got problem solved following steps,
solution
- make sure r. links not broken. fix errors in xml files. if in adks broken, r not regenerate.
- if somehow hit , created import android.r in activity, remove it. run project -> clean. delete , regenerate r , buildconfig.
- make sure project -> build automatically ticked. if not, build manually via menu -> project -> build project .
- if doesn't work, delete inside /gen/ folder -if still doesn't work, try right-clicking project -> android tools -> fix project properties. -check *.properties files (in root folder of app folder) , make sure links in there not broken. -right-click project > properties > android. @ project build target , library sections on right side of page. build target should match target in androidmanifest.xml. if it's set target 17 in androidmanifest, make sure target name android 4.2. if library has x under reference, remove , re-add library until there's green tick. might happen if you've moved few files , folders around.
what if r doesn't regenerate
- check android sdk build-tools installed. window->android sdk manager->tools->android sdk build-tools
- make sure when update android sdk tools, update android sdk platform-tools , android ask build-tools. build fails silently if don't match.
- if can't find issue, right click /gen/ -> restore local history... -> tick r.java -> click restore. doesn't solve problem, clear out errors make problem easier find.
Comments
Post a Comment