Reputation: 311
I'm developing an android application for a month. and today when I cleaned my project (project>clean...), I got "R cannot be resolved to a variable" error and i can't run my app.
I Googled for solution and did every solution for this problem but not success.
Note: I removed all imports R and cleaned my project again but the problem exists.
Can anyone help me?
Sorry for bad English!
Edit: problem solved. there was some errors in one of xml files.
Upvotes: 0
Views: 3677
Reputation: 1
I solved my problem
LinearLayout android:id="@id/TelNoLayout"
replace to
LinearLayout android:id="@+id/TelNoLayout"
and build
Upvotes: 0
Reputation: 2153
this appears when you have errors in layout files or other xml files. Also take care that images have names that don t contain upper caracters
Upvotes: 2