I design a new form name (form_info.xml) to get some information from user then I tried to include the form to activity_main.xml but unfortunately app crashed and I got inflateExcdeption but I don’t know how to handle it. Also when I add my new form by means of setContentView (R.layout.form_info) I got same error. There is activity_main.xml: And below is