title: Why Java file doesn't find the Drawable xml file in android studio?
body: <p>I am making an alarm clock. In one of my java file I have to find an drawable file like this: <code>layout.setBackgroundResource(R.drawable.view_touch_selector);</code>
  But, it shows error and says <strong>can't resolves symbol view_touch_selector</strong>. I don't know why it's happening although I have that corresponding <em>view_touch_selector</em> created. </p>
  
  <p><img src="https://i.stack.imgur.com/9LEQa.jpg" alt="enter image description here"></p>
  
  <p>UPDATE (after <strong>original android's</strong> answer):</p>
  
  <p><em>Can't resolve symbol 'R' error!</em> The 'R' becomes red in each file.</p>
  
  <p><img src="https://i.stack.imgur.com/DqEeL.jpg" alt="enter image description here"></p>