(R.id.imageView1) The R at the beginning is Red and stopping my project from running, why
Asked
Active
Viewed 90 times
-3
-
2Possible duplicate of [R cannot be resolved - Android error](http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error) – Phantômaxx Nov 22 '15 at 13:01
2 Answers
0
you must clean your project . in android studio: build->clean.... after that, your project will rebuild automatically and error will be disappear
and in eclipse: Window -> Preferences -> General -> Keys (Ctrl+Shift+L)

iman kazemayni
- 1,255
- 1
- 19
- 20
0
The R file for your project is created without errors only when your project is clean of all errors in the resources(res) folder. Check if there are any errors pending in that folder. Once you are done with it , clean your project and you will be good to go

Himmat Gill
- 341
- 3
- 4