title: Android - setContentView(R.layout.main);
body: <p>I looked into other questions of this type and I followed their instructions, but none of them seem to work. I have a problem where I have this code</p>
  
  <pre><code>setContentView(R.layout.main); 
  </code></pre>
  
  <p>and the error saying <code>error: cannot find symbol variable main</code>. I tried importing the name of the package, and all of my .xml files are in order with no errors. What am I missing?
  Thanks in advance.</p>