Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cleaning Project not fixing R.java errors (Android)

My Android project just started saying all my R.blah.blah references are errors. Cleaning/re-generating the R.java file has not fixed it. Nor has closing/reopening the project/eclipse. I undid any changes to xml files that could have caused it. This is only occurring in ONE of my activities, all other activities do not have any errors related to R.blah.

Note: R.java does have all the correct references in the file.

like image 291
Steve Silvestri Avatar asked Oct 05 '22 11:10

Steve Silvestri


2 Answers

check if

import android.R;

is in your classes and remove it then try

like image 190
JRowan Avatar answered Oct 23 '22 15:10

JRowan


If you copy code from other project you get some,lines like

import android.R.com.example.view.Widget
import android.R.com.hardware.Camera 

Remove those lines and run it.

like image 32
Ram Avatar answered Oct 23 '22 17:10

Ram