title: Corresponding method handler not found - Android XML
body: <p>I came across this error when creating making changes to the XML of an existing project. This is what my XML looked like</p>
  
  <p>activity_month_view.xml</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
      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"
      tools:context=".activities.YearViewActivity"&gt;
  
      &lt;ImageView
          android:id="@+id/month_view_prev_month"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/ic_keyboard_arrow_left_black_24dp"
          android:onClick="changeMonth"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>My Java class</p>
  
  <p>MonthViewActivity.java</p>
  
  <pre><code>public class MonthViewActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_month_view);
      }
  
      public void changeMonth(View view) {
          //Some methods here
      }
  
  }
  </code></pre>
  
  <p>The <code>onClick</code> property showed this error</p>
  
  <pre><code> Corresponding method handler 'public void changeMonth(android.view.View)' not found
  </code></pre>
  
  <p>I had a look at <a href="https://stackoverflow.com/a/9853240/6891637">this</a> and <a href="https://stackoverflow.com/a/44918035/6891637">this</a> but they did not help.</p>