AppCompatButton android:onClick Could not find a method exception
问题 I have this problem just on KitKat version, the rest from 16 API level to 25 works fine the class that instantiates the layout have the method of the layout, example <android.support.v7.widget.AppCompatButton android:onClick="onClick" ... public void onClick(View v) { // do something } I know I can change this to listeners, databindings or use some library like Butterknife, but I'm interested in know why just crash on 4.X versions? xml layout <?xml version="1.0" encoding="utf-8"?>