title: 'Resource.Layout' does not contain a definition for 'activity_main' in xamarin
body: <p>I am getting an error of <strong>'Resource.Layout' does not contain a definition for 'activity_main'</strong>. But I am confused, why it is showing this type of error. Because <strong>activity_main</strong> is available in <strong>Resource.Layout</strong>, but still showing the same error.</p>
  
  <p>Here is the code,</p>
  
  <p><strong>Resources => Layout => activity_main.axml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"
      android:minWidth="25px"
      android:minHeight="25px"&gt;
      &lt;android.webkit.WebView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:id="@+id/webView" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Resources => MainActivity.cs</strong></p>
  
  <pre><code>[Activity(Label = "BSSTMatrimonial", MainLauncher = true)]
      public class MainActivity : Activity
      {
          WebView webView = null;
          protected override void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
  
              // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);
  
             // webView = FindViewById&lt;WebView&gt;(Resource.Id.webView);
             //webView.SetWebViewClient(new ExtendWebViewClient());
  
              webView.LoadUrl("www.bsstmatrimony.com");
              WebSettings webSettings = webView.Settings;
              webSettings.JavaScriptEnabled = true;
          }
      }
  </code></pre>