title: Android Development - getMenuInflater(R.menu.main, menu)
body: <p>I'm learning android and following a simple camera app tutorial. There's a snippet of code that I've reproduced but I am getting an error on it and I'm not sure why.</p>
  
  <p>The tutorial I'm using is, </p>
  
  <p><a href="http://iwearshorts.com/blog/android-development-102/" rel="noreferrer">http://iwearshorts.com/blog/android-development-102/</a></p>
  
  <p>The snippet of code is:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu){
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  </code></pre>
  
  <p>In my project, I am getting an error with R.menu.main. More specifically, the word menu in 'R.menu.main' cannot be resolved or is not a field. </p>
  
  <p>I don't see anything in the tutorial that I've missed that would cause this. The only thing I can think of is that it's related to using a different version of Android. I'm not sure how I would check this though.</p>
  
  <p>I appreciate any advice, thank you. </p>