title: R.layout.activity_find_contact cannot be resolved or is not a field
body: <p>I am brand new to android development so please bear with me. I have encountered a problem when I create a new activity. In the newly created activity there is the auto-generated overridden method 'onCreate':</p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_find_contact);
      // Show the Up button in the action bar.
      setupActionBar();
  }
  </code></pre>
  
  <p>On the line <code>setContentView(R.layout.activity_find_contact);</code>, I get the error: <code>activity_find_contact cannot be resolved or is not a field</code>.</p>
  
  <p>I have looked up other questions on this topic. Some say to just restart eclipse - this didn't work. Others said to try cleaning the project - this didn't work either. The most promising answer said to delete the line:</p>
  
  <p><code>import android.R;</code></p>
  
  <p>I tried this, and of course then <code>R</code> gets the error: <code>R cannot be resolved to a variable</code>. So I followed the advice to import <code>your.application.package.R;</code> - which in my context translates to <code>import com.example.databasetest.R;</code>. However this just brings up the error <code>the import com.example.databasetest.R; cannot be resolved to a type</code>.</p>
  
  <p>So now I'm stumped and back to square one. Any ideas?</p>