I have updated my SDK
and ADT
to the latest version, I have also update the Eclipse
to Kepler
the latest one after
if the problem persists then try closing the other projects by
right click -> close Unrelated projects !
this worked in my case
Sometimes when you extract your file it miss some part so better when its extracting make sure all file are extracting properly and then run eclipse after that run a simple file and install plugin of avd it helped in my case
Try this:
make a backup of your projects on desktop
close eclipse
delete your workspace
restart eclipse and import your projects again.
For eclipse users: Comment the lines including R.* Clean and build. R.java will be generated and then uncomment the R.* and rebuild.
the best solution for r.java missing for linux... R.java is self generated in gen folder.. so better dont edit or create manually by urself ..
-open terminal(alt + ctrl + t) -change directory to skd->tools -then provide executive attribute to all executable file by(sudo chmod +x filename) -do the same for files in sdk->platform tools .. (ie sudo chmod +x filename) .. -----every executable file sud b provided with +x attribute...
My issue was that I had android:orientation misspelled in my activity_main.xml file and I was getting this error. I fixed the spelling and problem went away! So make sure activity_main.xml doesn't have any errors in it.